Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 3 - Appendixes
Appendix E - MathLib Reference


Environmental Controls
Table E-3 Environmental access
ActionFunction prototype
Getvoid fegetenv (fenv_t *envp);
Setvoid fesetenv (const fenv_t *envp);
Saveint feholdexcept (fenv_t * envp);
Restorevoid feupdateenv (const fenv_t *envp);
Table E-4 Floating-point exceptions
ExceptionsActionFunction prototype
FE_INEXACTGetvoid fegetexcept(fexcept_t *flagp,
int excepts);
FE_DIVBYZEROSetvoid feraiseexcept (int excepts);
FE_UNDERFLOWClearvoid feclearexcept (int excepts);
FE_OVERFLOW void fesetexcept (const fexcept_t *flagp, int excepts);
FE_INVALIDTestint fetestexcept (int excepts);
Table E-5 Rounding direction modes
ModesActionFunction prototype
FE_TONEARESTGetint fegetround (void);
FE_TOWARDZEROSetint fesetround (int round);
FE_UPWARD  
FE_DOWNWARD  


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996