Art putting fpu into single precision mode for macos
Between art v2_06_03 and art v2_07_03, art has started putting the fpu into single precision mode for macos.
#3 Updated by Christopher Green about 2 years ago
- Category set to Infrastructure
- Status changed from Assigned to Resolved
- Target version set to 2.08.00
An issue was identified on OS X with the way the masks were being applied that may have been hidden by the recently-removed per-module FPU control system.
The floating point control service has been overhauled to avoid this issue, and to be generally much more robust and straightforward, and tests have been put in place to ensure that the exception masking and precision setting system are operating as expected.
One very important note: on Linux in particular, the C99 standard
fegetenv() function is not safe to use because it resets the exception masking. We would suggest using the newly-provided functions in the service,
getPrecision() if you need to verify the settings for yourself for any reason.