HLS math ライブラリ - 2023.2 日本語

Vitis 高位合成ユーザー ガイド (UG1399)

Document ID
UG1399
Release Date
2023-12-18
Version
2023.2 日本語

HLS ビデオ ライブラリには、次の関数が含まれます。すべての関数で半精度型 (half)、単精度型 (float)、および倍精度型 (double) がサポートされます。

重要: 次にリストする関数 func には、half_func という半精度のみの関数と funcf という単精度のみの関数もライブラリに含まれます。

半精度型、単精度型、倍精度型を混合して使用する場合は、最終的な FPGA インプリメンテーションで型変換ハードウェアが使用されないように、よくある合成エラーを確認してください。

三角関数

acos acospi asin asinpi
atan atan2 atan2pi cos
cospi sin sincos sinpi
tan tanpi    

双曲線関数

acosh asinh atanh cosh
sinh tanh    

指数関数

exp exp10 exp2 expm1
frexp ldexp modf  

対数関数

ilogb log log10 log1p

べき関数

cbrt hypot pow rsqrt
sqrt      

誤差関数

erf erfc    

丸め関数

ceil floor llrint llround
lrint lround nearbyint rint
round trunc    

剰余関数

fmod remainder remquo  

浮動小数点

copysign nan nextafter nexttoward

差分関数

fdim fmax fmin maxmag
minmag      
重要: Vitis HLS は、7fmin/fmax の技術仕様 18661-1 sNaN をまだサポートしていません。このため、glibc 2.25 以降の結果と比較すると、結果が異なる場合があります。

その他の関数

abs divide fabs fma
fract mad recip  

分類関数

fpclassify isfinite isinf isnan
isnormal signbit    

比較関数

isgreater isgreaterequal isless islessequal
islessgreater isunordered    

関係関数

all any bitselect isequal
isnotequal isordered select