开发者

Setting FPU in Windows & OS X

开发者 https://www.devze.com 2023-02-17 22:22 出处:网络
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'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号