OLD | NEW |
1 // The following is adapted from fdlibm (http://www.netlib.org/fdlibm). | 1 // The following is adapted from fdlibm (http://www.netlib.org/fdlibm). |
2 // | 2 // |
3 // ==================================================== | 3 // ==================================================== |
4 // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. | 4 // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
5 // | 5 // |
6 // Developed at SunSoft, a Sun Microsystems, Inc. business. | 6 // Developed at SunSoft, a Sun Microsystems, Inc. business. |
7 // Permission to use, copy, modify, and distribute this | 7 // Permission to use, copy, modify, and distribute this |
8 // software is freely granted, provided that this notice | 8 // software is freely granted, provided that this notice |
9 // is preserved. | 9 // is preserved. |
10 // ==================================================== | 10 // ==================================================== |
11 // | 11 // |
12 // The original source code covered by the above license above has been | 12 // The original source code covered by the above license above has been |
13 // modified significantly by Google Inc. | 13 // modified significantly by Google Inc. |
14 // Copyright 2014 the V8 project authors. All rights reserved. | 14 // Copyright 2014 the V8 project authors. All rights reserved. |
15 | 15 |
| 16 #include <cmath> |
| 17 |
16 #include "src/v8.h" | 18 #include "src/v8.h" |
17 | 19 |
18 #include "src/double.h" | 20 #include "src/double.h" |
19 #include "third_party/fdlibm/fdlibm.h" | 21 #include "third_party/fdlibm/fdlibm.h" |
20 | 22 |
21 | 23 |
22 namespace v8 { | 24 namespace v8 { |
23 namespace internal { | 25 namespace internal { |
24 | 26 |
25 const double TrigonometricConstants::constants[] = { | 27 const double TrigonometricConstants::constants[] = { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 int n = __kernel_rem_pio2(tx, y, e0, nx); | 251 int n = __kernel_rem_pio2(tx, y, e0, nx); |
250 if (hx < 0) { | 252 if (hx < 0) { |
251 y[0] = -y[0]; | 253 y[0] = -y[0]; |
252 y[1] = -y[1]; | 254 y[1] = -y[1]; |
253 return -n; | 255 return -n; |
254 } | 256 } |
255 return n; | 257 return n; |
256 } | 258 } |
257 } | 259 } |
258 } // namespace v8::internal | 260 } // namespace v8::internal |
OLD | NEW |