Intel® C++ Compiler 16.0 User and Reference Guide

Overview: Intel® Math Library

The Intel® C++ Compiler includes a mathematical software library containing highly optimized and very accurate mathematical functions. These functions are commonly used in scientific or graphic applications, as well as other programs that rely heavily on floating-point computations. To include support for C99 _Complex data types, use the [Q]std=c99 compiler option.

Many routines in the Intel® Math Library are more highly optimized for Intel® microprocessors than for non-Intel microprocessors.

The mathimf.h header file includes prototypes for Intel® Math Library functions.

Note

Intel's math.h header file is compatible with the gcc math library libm, but it does not cause the gcc* math library to be linked. The source can be built with either gcc, icc, or icl. When built with icc or icl, the Intel® Math Library libimf will be linked. The header file for the Intel® Math Library mathimf.h contains additional functions that are found only in the Intel® Math Library. The source can only be built using the Intel® C++ Compilers and libraries.

Intel® Math Libraries for Linux* and OS X*

The math library linked to an application depends on the compilation or linkage options specified.

Library

Description

libimf.a

Default static math library.

libimf.so

Default shared math library.

Intel® Math Libraries for Windows*

The math library linked to an application depends on the compilation or linkage options specified.

Library

Option

Description

libm.lib

 

Default static math library.

libmmt.lib

/MT

Multi-threaded static math library.

libmmd.lib

/MD

Dynamically linked math library.

libmmdd.lib

/MDd

Dynamically linked debug math library.

libmmds.lib

 

Static version compiled with /MD option.

See Also