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.
Install
gcc, then compile exp_sve.c with gcc -O3 -march=armv8-a+sve exp_sve.c -o exp_sve -lm. Use an SVE-capable Arm processor to execute the SVE implementation.The provided implementation uses single precision: its coefficients are
float values and its SVE vectors use svfloat32_t. The example therefore builds the FP32 version described in the precision table.After the baseline SVE polynomial version compiles and produces correct results, replace the range-reduction sequence with the FEXPA-based approach. Re-validate accuracy against your target error before continuing.
FEXPA performs table lookup and bit manipulation in hardware, which lets you use a lower-degree polynomial for the same target precision. Confirm this by checking approximation error over a representative input range.
Use range reduction to map inputs into an interval where the polynomial is accurate, then tune the polynomial degree to meet your error goal. Evaluate absolute or relative error across representative inputs before finalizing the choice.