mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
22 lines
523 B
C
Vendored
22 lines
523 B
C
Vendored
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
|
|
#include <internal.h>
|
|
|
|
/* 7.6.2.1
|
|
The feclearexcept function clears the supported exceptions
|
|
represented by its argument. */
|
|
|
|
int feclearexcept(int flags)
|
|
{
|
|
fenv_t env;
|
|
|
|
fegetenv(&env);
|
|
flags &= FE_ALL_EXCEPT;
|
|
env._Fe_stat &= ~fenv_encode(flags, flags);
|
|
return fesetenv(&env);
|
|
}
|