Skip to content

Commit b2e7c73

Browse files
committed
cop
1 parent 8bf66d5 commit b2e7c73

2 files changed

Lines changed: 3 additions & 100 deletions

File tree

benchmark_simd.rb

Lines changed: 0 additions & 97 deletions
This file was deleted.

ext/ruby2html/extconf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
# Enable SSE4.2 if supported (for SIMD HTML escaping)
1010
# Check if we're on x86_64 and can use SSE4.2
11-
if RUBY_PLATFORM =~ /x86_64|amd64/i
11+
if RUBY_PLATFORM.match?(/x86_64|amd64/i)
1212
# Try to compile a test program with SSE4.2
1313
if try_compile('#include <nmmintrin.h>
1414
int main() { __m128i a; return 0; }',
1515
'-msse4.2')
1616
$CFLAGS << ' -msse4.2'
17-
puts "SSE4.2 support enabled for faster HTML escaping"
17+
puts 'SSE4.2 support enabled for faster HTML escaping'
1818
else
19-
puts "SSE4.2 not available, using scalar implementation"
19+
puts 'SSE4.2 not available, using scalar implementation'
2020
end
2121
end
2222

0 commit comments

Comments
 (0)