Optimized math routines - libamath

The libamath library in the /opt/arm/<armpl_dir>/lib directory contains optimized versions of some libm functions.

Before the Arm Compiler links to the libm library, the compiler automatically links to the libamath library to provide enhanced performance by using the optimized functions. This is a default behavior and does not require that you to supply any specific compiler flags to initiate this behavior.

When using libamath with the GCC compiler, you must explicitly link to the libamath library before linking to libm. For example:

gcc code_with_math_routines.c -lamath -lm
gfortran code_with_math_routines.f -lamath -lm

Previous Next