/* This is an undeclared and undocumented routine used by strtof_l in libc.a.
It appears to be identical to the C standard fegetround except that it
uses different values for the modes.
This routine should be deprecated. libc.a should use the standard routine.
*/
#ifdefARMLIBM_FENV_SUPPORT
#include"fenv.h"
#include<float.h>int__fegetfltrounds(void);
int__fegetfltrounds(void)
{
switch (fegetround())
{
caseFE_TONEAREST: return 1;
caseFE_TOWARDZERO: return 0;
caseFE_UPWARD: return 2;
caseFE_DOWNWARD: return 3;
default: return -1;
}
}
#endif