22 #ifndef __CONDITIONALMACROS__
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
43 #elif PRAGMA_STRUCT_PACK
71 typedef long fexcept_t;
75 FE_INEXACT = 0x02000000,
76 FE_DIVBYZERO = 0x04000000,
77 FE_UNDERFLOW = 0x08000000,
78 FE_OVERFLOW = 0x10000000,
79 FE_INVALID = 0x20000000,
80 FE_ALL_EXCEPT = 0x3E000000
87 FE_TONEAREST = 0x00000000,
88 FE_TOWARDZERO = 0x00000001,
89 FE_UPWARD = 0x00000002,
90 FE_DOWNWARD = 0x00000003
96 #if TARGET_RT_MAC_68881
97 typedef long fexcept_t;
103 typedef struct fenv_t fenv_t;
106 FE_INEXACT = 0x00000008,
107 FE_DIVBYZERO = 0x00000010,
108 FE_UNDERFLOW = 0x00000020,
109 FE_OVERFLOW = 0x00000040,
110 FE_INVALID = 0x00000080,
111 FE_ALL_EXCEPT = 0x000000F8
117 typedef short fexcept_t;
118 typedef short fenv_t;
122 FE_UNDERFLOW = 0x0002,
123 FE_OVERFLOW = 0x0004,
124 FE_DIVBYZERO = 0x0008,
126 FE_ALL_EXCEPT = 0x001F
134 FE_TONEAREST = 0x0000,
136 FE_DOWNWARD = 0x0002,
137 FE_TOWARDZERO = 0x0003
143 FE_LDBLPREC = 0x0000,
159 extern fenv_t _FE_DFL_ENV;
160 #define FE_DFL_ENV &_FE_DFL_ENV
178 void feclearexcept(
int excepts);
193 void fegetexcept(fexcept_t *flagp,
int excepts);
207 void feraiseexcept(
int excepts);
225 void fesetexcept(
const fexcept_t *flagp,
int excepts);
242 int fetestexcept(
int excepts);
259 int fegetround(
void);
275 int fesetround(
int round);
293 void fegetenv(fenv_t *envp);
310 int feholdexcept(fenv_t *envp);
327 void fesetenv(
const fenv_t *envp);
345 void feupdateenv(
const fenv_t *envp);
355 #if CALL_NOT_IN_CARBON
374 int fesetprec(
int precision);
382 #if PRAGMA_STRUCT_ALIGN
383 #pragma options align = reset
384 #elif PRAGMA_STRUCT_PACKPUSH
386 #elif PRAGMA_STRUCT_PACK
390 #ifdef PRAGMA_IMPORT_OFF
Set up for compiler independent conditionals.