5092e4a714
Do not return a value. * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise. * mingwex/feraiseexcept.c (feraiseexcept): Likewise. * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise. * mingwex/fegetenv.c (fegetenv): Likewise. * mingwex/fesetenv.c (fesetenv): Likewise. * mingwex/feupdateenv.c (feupdateenv): Likewise. * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept, fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct prototypes.
19 lines
605 B
C
19 lines
605 B
C
#include <fenv.h>
|
|
|
|
/* 7.6.2.3
|
|
The feraiseexcept function raises the supported exceptions
|
|
represented by its argument The order in which these exceptions
|
|
are raised is unspecified, except as stated in F.7.6.
|
|
Whether the feraiseexcept function additionally raises
|
|
the inexact exception whenever it raises the overflow
|
|
or underflow exception is implementation-defined. */
|
|
|
|
void feraiseexcept (int excepts)
|
|
{
|
|
fenv_t _env;
|
|
__asm__ volatile ("fnstenv %0;" : "=m" (_env));
|
|
_env.__status_word |= excepts & FE_ALL_EXCEPT;
|
|
__asm__ volatile ("fldenv %0;"
|
|
"fwait;" : : "m" (_env));
|
|
}
|