views:

45

answers:

1

Anyone know of a decent C99 fenv.h implementation for MS compilers?

I imagine this wouldn't be difficult to do; I'm just looking to save some time.

+2  A: 

I don't know of any implementations and I doubt any exists. Although Visual Studio has the _controlfp() function and a number of related preprocessor pragma's (float_control(), fenv_access(), fp_contract(), I don't think you can use them to create a conforming fenv.h implementation.

Sad as it is, Visual Studio is not a C99 compiler, and probably never will be.

schot
Pretty much this. Visual Studio doesn't care about C99.
DeadMG
Thanks for the replies.I suppose then they couldn't care less about portable validated numerics.
i_photon
This. Visual Studio is not (and probably never will be) a C compiler.
Stephen Canon