std1.0.0-beta-7 SafeC docs

Module fenv

#include <std/fenv.h> source

Floating-point environment (C99 <fenv.h>) Read and set floating-point exception flags and rounding mode.

Functions

fenv_clearClear specified exception flags (pass FE_ALL_EXCEPT() to clear all).
fenv_testTest whether any of the specified exceptions are raised.
fenv_raiseRaise specified exceptions.
fenv_get_roundGet current rounding mode (returns FE_* constant).
fenv_set_roundSet rounding mode (pass FE_* constant). Returns 0 on success.
fenv_saveSave and restore the complete FP environment. env must point to a 32-byte buffer.
fenv_restore
fenv_save_clearsave + clear all exceptions