123456789101112131415161718192021222324252627282930313233343536 |
- #include "fenv_libc.h"
- int
- fesetround (int round)
- {
- unsigned long fpescr;
- if ((unsigned int) round > 3)
- return 1;
- fpescr = fegetenv_register ();
- fpescr = (fpescr & ~SPEFSCR_FRMC) | (round & 3);
- fesetenv_register (fpescr);
- return 0;
- }
- libm_hidden_def (fesetround)
|