12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include <fenv.h>
- #include <fpu_control.h>
- int
- fegetenv (fenv_t *envp)
- {
- #ifdef __NDS32_ABI_2FP_PLUS__
- unsigned long int temp;
- _FPU_GETCW (temp);
- envp->__fpcsr = temp;
-
- return 0;
- #else
-
- return 1;
- #endif
- }
|