Math Libraries

The Intel® compilers supply two libraries that you can use to generate optimized code. Both libraries are included by adding their location to the path in the LIB environment variable and are used automatically when using one of the vectorization options.

The following table lists these two libraries and describes their benefits.

Library name

Description

Description

LIBM

 

Usually faster than the libc.lib and libm.lib of Microsoft and the libm.a of GNU*.

Automatically replaces many functions in Microsoft's libc.lib and libm.lib and GNU's libm.a.

Short Vector Math Library (SVML)

i32

Used when vectorizing loops which have math functions in them. For example, with SVML you can vectorize a loop that calls sin.