Optimized math routines - libamath

libamath contains AArch64-optimized versions of the following scalar functions, in both single and double precision: exponential (expexp2), logarithm (loglog2log10), and error functions (erferfc). In addition, optimized single precision sine and cosine functions are included (sinfcosfsincosf).

libamath also contains vectorized versions (Neon and SVE) of all of the common math.h functions in libm.

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