Visible to Intel only — GUID: ofo1572916603520
Ixiasoft
Visible to Intel only — GUID: ofo1572916603520
Ixiasoft
A.2. Math Functions Provided by the extendedmath.h Header File
The Intel® HLS Compiler Standard Edition supports an additional subset of math functions through the HLS/extendedmath.h header file.
For each extendedmath.h function listed below, "●" indicates that the Intel® HLS Compiler Standard Edition supports the function; "X" indicates that the function is not supported.
The math functions supported on Linux operating systems might differ from the math functions supported on Windows operating systems. Review the comments in the HLS/extendedmath.h header file to see which math functions are supported on the different operating systems.
Extended Math Functions | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
sincos | sincosf | ● |
acospi | acospif | ● |
asinpi | asinpif | ● |
atanpi | atanpif | ● |
cospi | cospif | ● |
sinpi | sinpif | ● |
tanpi | tanpif | ● |
pown | pownf | ● |
powr | powrf | ● |
rsqrt | rsqrtf | ● |
Exponential or Logarithmic Function | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
exp10 (Windows only) | exp10f (Windows only) * | X |
Error or Gamma Function | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
lgamma_r (Windows only)4 | lgamma_rf (Windows only)4 | X |
Minimum, Maximum, or Difference Function | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
maxmag | maxmagf | X |
minmag | minmagf | X |
Function | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
fract | fractf | X |
mad | madf | X |
oclnan | oclnanf | X |
rootn | rootnf | X |
Classification Macro | Supported? | |
---|---|---|
Double-precision floating point function | Single-precision floating point function | |
isordered | isorderedf | X |
Data type | Function |
---|---|
Unsigned char | popcountc |
Unsigned short | popcounts |
Unsigned int | popcount |
Unsigned long | popcountl |
Unsigned long long | popcountll |
To see an example of how to use the math functions provided by the extendedmath.h header file and how to override a math function in the header file so that you can compile your design with GCC or Microsoft Visual Studio, review the following example design: <quartus_installdir>/hls/examples/QRD.