12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #include <fenv.h>
- #include <math.h>
- #include <unistd.h>
- #include "internal.h"
- int
- fesetexceptflag (const fexcept_t *flagp, int excepts)
- {
- unsigned int temp;
-
- __asm__ ("MOV %0,TXDEFR" : "=r" (temp));
- excepts &= FE_ALL_EXCEPT;
- excepts <<= 16;
- temp &= ~excepts;
- temp |= *flagp & excepts;
- metag_set_fpu_flags(temp);
-
- return 0;
- }
|