Chromium Code Reviews| Index: fusl/src/internal/libm.h |
| diff --git a/fusl/src/internal/libm.h b/fusl/src/internal/libm.h |
| index df8641116af2ee442525828bfc27bc2de75ee508..48dabc4dc3d5a472626c251714812fa3563fd399 100644 |
| --- a/fusl/src/internal/libm.h |
| +++ b/fusl/src/internal/libm.h |
| @@ -19,6 +19,12 @@ |
| #include <complex.h> |
| #include <endian.h> |
| +#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.
|
| +#define PRAGMA_STDC_FENV_ACCESS_ON |
| +#else |
| +#define PRAGMA_STDC_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON") |
| +#endif |
| + |
| #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 |
| #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN |
| union ldshape { |