-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The "fast" implementation of Math.exp() and Math.tanh() emits ARMv7 movt/movw instructions on ARMv6 (notably, the original Raspberry Pi.) Disable fast math for now. The adventurous can enable it again with the --fast_math switch. PR-URL: #1398 Refs: #1376 Reviewed-By: Roman Reiss <me@silverwind.io> V8-Bug: https://code.google.com/p/v8/issues/detail?id=4019
- Loading branch information
1 parent
cd38a4a
commit e306c78
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// See https://github.com/iojs/io.js/issues/1376 | ||
// and https://code.google.com/p/v8/issues/detail?id=4019 | ||
|
||
Math.abs(-0.5); | ||
Math.acos(-0.5); | ||
Math.acosh(-0.5); | ||
Math.asin(-0.5); | ||
Math.asinh(-0.5); | ||
Math.atan(-0.5); | ||
Math.atanh(-0.5); | ||
Math.cbrt(-0.5); | ||
Math.ceil(-0.5); | ||
Math.cos(-0.5); | ||
Math.cosh(-0.5); | ||
Math.exp(-0.5); | ||
Math.expm1(-0.5); | ||
Math.floor(-0.5); | ||
Math.fround(-0.5); | ||
Math.log(-0.5); | ||
Math.log10(-0.5); | ||
Math.log1p(-0.5); | ||
Math.log2(-0.5); | ||
Math.round(-0.5); | ||
Math.sign(-0.5); | ||
Math.sin(-0.5); | ||
Math.sinh(-0.5); | ||
Math.sqrt(-0.5); | ||
Math.tan(-0.5); | ||
Math.tanh(-0.5); | ||
Math.trunc(-0.5); |