We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bf66d5 commit b2e7c73Copy full SHA for b2e7c73
2 files changed
benchmark_simd.rb
ext/ruby2html/extconf.rb
@@ -8,15 +8,15 @@
8
9
# Enable SSE4.2 if supported (for SIMD HTML escaping)
10
# Check if we're on x86_64 and can use SSE4.2
11
-if RUBY_PLATFORM =~ /x86_64|amd64/i
+if RUBY_PLATFORM.match?(/x86_64|amd64/i)
12
# Try to compile a test program with SSE4.2
13
if try_compile('#include <nmmintrin.h>
14
int main() { __m128i a; return 0; }',
15
'-msse4.2')
16
$CFLAGS << ' -msse4.2'
17
- puts "SSE4.2 support enabled for faster HTML escaping"
+ puts 'SSE4.2 support enabled for faster HTML escaping'
18
else
19
- puts "SSE4.2 not available, using scalar implementation"
+ puts 'SSE4.2 not available, using scalar implementation'
20
end
21
22
0 commit comments