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.
source
share