FCPR on Apple Silicon

Hi All,

I would like to know if there are any C APIs to control the Floating-Point Control Register (FPCR) on Apple Silicon?

The ARM documentation does not show any C APIs for doing this. The only example code looks like VHDL, so I was wondering if any developers here knew of any.

Thanks

Replies

The standard C APIs to control floating-point behavior are described in man 3 fenv. For Apple silicon, please use Xcode 14.3+ where support was officially added.