Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: src/third_party/fdlibm/fdlibm.cc

Issue 638553003: Move fdlibm in src/third_party. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix gn Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/third_party/fdlibm/fdlibm.h ('k') | src/third_party/fdlibm/fdlibm.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/third_party/fdlibm/fdlibm.h ('k') | src/third_party/fdlibm/fdlibm.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698