Setting FPU in Windows & OS X
I'm doing a program to set the precision control of the FPU to 24 bits and the rounding mode to "near" using the _controlfp_s
function. I want to create a dll for Windows and a bundle for OS X.
I can't find _controlfp_s
when compiling with Xcode, I think it's part of a Microsoft library unavailable on Mac.
I'd like to use the same .c file on both projects, so is there a 开发者_JS百科way to compile this to OS X? Is there a C Microsoft compiler for Mac?
Thank you.
There is no way to do this. I had to port _controlfp_s to Mac.
精彩评论