summaryrefslogtreecommitdiff
path: root/spec/ruby/language/regexp/encoding_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2020-05-03 14:38:19 +0900
committerNobuyoshi Nakada <[email protected]>2020-05-03 15:29:51 +0900
commite49ecaed57181c10bf01e1f84b9eead65a759386 (patch)
tree21b48793d6c844854384734d244e4efe570a86b7 /spec/ruby/language/regexp/encoding_spec.rb
parent8af098b40ee3788f3d13f02298eeecfb52fa0c16 (diff)
Optimize sin/cos
GCC/Clang can optimize to calculate `sin(x)` and `cos(x)` at once, when the both are closely called on the same argument. Similar optimization is possible for `__sinpi(x)` and `__cospi(x)` if available, which calculate arguments in radian, i.e. `sin(x*M_PI)` and `cos(x*M_PI)` respectively.
Diffstat (limited to 'spec/ruby/language/regexp/encoding_spec.rb')
0 files changed, 0 insertions, 0 deletions