سؤال

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top