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

Side by Side Diff: fusl/src/internal/libm.h

Issue 1581793002: Remove -Wno-unknown-pragmas from fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* origin: FreeBSD /usr/src/lib/msun/src/math_private.h */ 1 /* origin: FreeBSD /usr/src/lib/msun/src/math_private.h */
viettrungluu 2016/01/12 23:38:25 I guess this file is only included by implementati
kulakowski 2016/01/13 00:04:50 Yup.
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 SunPro, a Sun Microsystems, Inc. business. 6 * Developed at SunPro, 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 12
13 #ifndef _LIBM_H 13 #ifndef _LIBM_H
14 #define _LIBM_H 14 #define _LIBM_H
15 15
16 #include <stdint.h> 16 #include <stdint.h>
17 #include <float.h> 17 #include <float.h>
18 #include <math.h> 18 #include <math.h>
19 #include <complex.h> 19 #include <complex.h>
20 #include <endian.h> 20 #include <endian.h>
21 21
22 #ifdef __clang__
viettrungluu 2016/01/12 23:38:26 Could you add a comment explaining this? (Include
kulakowski 2016/01/13 00:04:50 Yeah, I'll do that.
23 #define PRAGMA_STDC_FENV_ACCESS_ON
24 #else
25 #define PRAGMA_STDC_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON")
26 #endif
27
22 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 28 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
23 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_E NDIAN 29 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_E NDIAN
24 union ldshape { 30 union ldshape {
25 long double f; 31 long double f;
26 struct { 32 struct {
27 uint64_t m; 33 uint64_t m;
28 uint16_t se; 34 uint16_t se;
29 } i; 35 } i;
30 }; 36 };
31 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ ENDIAN 37 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ ENDIAN
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 int __rem_pio2l(long double, long double *); 181 int __rem_pio2l(long double, long double *);
176 long double __sinl(long double, long double, int); 182 long double __sinl(long double, long double, int);
177 long double __cosl(long double, long double); 183 long double __cosl(long double, long double);
178 long double __tanl(long double, long double, int); 184 long double __tanl(long double, long double, int);
179 185
180 /* polynomial evaluation */ 186 /* polynomial evaluation */
181 long double __polevll(long double, const long double *, int); 187 long double __polevll(long double, const long double *, int);
182 long double __p1evll(long double, const long double *, int); 188 long double __p1evll(long double, const long double *, int);
183 189
184 #endif 190 #endif
OLDNEW
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698