Configure FPU on Windows and OS X

I am making a program to set the precision control of the FPU to 24 bits, and the rounding mode is “next to” using the function _controlfp_s. I want to create a dll for Windows and a kit for OS X.

I cannot find _controlfp_swhen compiling with Xcode, I think that part of the Microsoft library is not available on Mac.

I would like to use the same .c file in both projects, so is there a way to compile this for OS X? Is there a C compiler for Mac?

Thank.

+3
source share
1 answer

There is no way to do this. I had to port _controlfp_s on Mac.

+1
source

All Articles