mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
11 lines
204 B
C
11 lines
204 B
C
|
#include "libc/runtime/fenv.h"
|
||
|
|
||
|
/**
|
||
|
* Saves floating-point environment and clears current exceptions.
|
||
|
*/
|
||
|
int feholdexcept(fenv_t *envp) {
|
||
|
fegetenv(envp);
|
||
|
feclearexcept(FE_ALL_EXCEPT);
|
||
|
return 0;
|
||
|
}
|