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
Who is this for?
This is an introductory topic for developers who want to use the different accuracy modes for vectorized math functions in Libamath, a component of Arm Performance Libraries.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Understand how accuracy is defined and measured in Libamath.
- Select an appropriate accuracy mode for your application.
- Use Libamath with different vector accuracy modes in practice.
Prerequisites
Before starting, you'll need the following prerequisites:
- An Arm computer running Linux with Arm Performance Libraries version 25.04 or newer installed
Summary
This summary was 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.
You’ll control floating-point accuracy for Libamath vector functions in Arm Performance Libraries. First, you’ll review IEEE 754 representation and Units in the Last Place (ULP), then use ULP error to interpret results. You’ll map Libamath function suffixes to selectable accuracy modes and their error bounds. Finally, you’ll run the Neon single-precision exponential function in each mode, calculate its ULP error, and compare it with the example demonstrated in the Learning Path.