I am trying to port a piece of software written in C which uses floating-point rounding modes to the GCW Zero, and one of its headers includes fenv.h to do this. I should say "attempts to use fenv.h to do this", though, because gcc emits the following error when compiling any includer of this header:
src/fpu.h:43:20: fatal error: fenv.h: No such file or directory
Now, the toolchain does have some files called fenv.h:
[email protected] ~$ find /opt/gcw0-toolchain -name fenv.h
However they're in C++, and the header appears to be incomplete even using g++
, because all the rounding modes that should be defined in it
are completely absent.
Here's a reduced version of the header:
/* some Visual Studio stuff here */
#define INLINE static inline
I am using the latest public toolchain as of this writing, released 2013-10-04.