this repo has no description
1/* This is an undeclared and undocumented routine used by strtof_l in libc.a.
2 It appears to be identical to the C standard fegetround except that it
3 uses different values for the modes.
4
5 This routine should be deprecated. libc.a should use the standard routine.
6*/
7
8#ifdef ARMLIBM_FENV_SUPPORT
9
10#include "fenv.h"
11#include <float.h>
12
13int __fegetfltrounds(void);
14
15int __fegetfltrounds(void)
16{
17 switch (fegetround())
18 {
19 case FE_TONEAREST: return 1;
20 case FE_TOWARDZERO: return 0;
21 case FE_UPWARD: return 2;
22 case FE_DOWNWARD: return 3;
23 default: return -1;
24 }
25}
26
27#endif