| 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 "src/v8.h" | 16 #include "src/v8.h" |
| 17 | 17 |
| 18 #include "src/double.h" | 18 #include "src/double.h" |
| 19 #include "third_party/fdlibm/fdlibm.h" | 19 #include "src/third_party/fdlibm/fdlibm.h" |
| 20 | 20 |
| 21 | 21 |
| 22 namespace v8 { | 22 namespace v8 { |
| 23 namespace fdlibm { | 23 namespace fdlibm { |
| 24 | 24 |
| 25 #ifdef _MSC_VER | 25 #ifdef _MSC_VER |
| 26 inline double scalbn(double x, int y) { return _scalb(x, y); } | 26 inline double scalbn(double x, int y) { return _scalb(x, y); } |
| 27 #endif // _MSC_VER | 27 #endif // _MSC_VER |
| 28 | 28 |
| 29 const double MathConstants::constants[] = { | 29 const double MathConstants::constants[] = { |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 int n = __kernel_rem_pio2(tx, y, e0, nx); | 272 int n = __kernel_rem_pio2(tx, y, e0, nx); |
| 273 if (hx < 0) { | 273 if (hx < 0) { |
| 274 y[0] = -y[0]; | 274 y[0] = -y[0]; |
| 275 y[1] = -y[1]; | 275 y[1] = -y[1]; |
| 276 return -n; | 276 return -n; |
| 277 } | 277 } |
| 278 return n; | 278 return n; |
| 279 } | 279 } |
| 280 } | 280 } |
| 281 } // namespace v8::internal | 281 } // namespace v8::internal |
| OLD | NEW |