Control floating-point accuracy modes in Arm Performance Libraries
Introduction
Floating-point representation
Units in the last place (ULP)
ULP error and accuracy
Accuracy modes in Libamath
Arm Performance Libraries example
Next Steps
Control floating-point accuracy modes in Arm Performance Libraries
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Check the function symbol suffix. The
_u10 suffix selects high accuracy with a 1 ULP bound, no suffix selects default accuracy, and _umax selects maximum performance.Compare your measured error with these limits: high accuracy is at most 1 ULP, default accuracy is at most 3.5 ULP, and low accuracy is approximately at most 4,096 ULP.
Confirm that the program calls the Neon single-precision exponential function in each mode and reports an error calculated by
ulp_error.h. Each value should remain within its documented ULP bound.Confirm that Arm Performance Libraries 25.04 or later is installed and that your build uses the correct include paths. Compile on an Arm system so that the example’s vector types and calling convention are available.
Calculate
ULP(x) as nextafter(x, +inf) - x, which gives the spacing to the next representable value. ULP error scales with magnitude, so you avoid the bias that absolute error can introduce across different ranges.