diff --git a/projects/hip/docs/markdown/hip_kernel_language.md b/projects/hip/docs/markdown/hip_kernel_language.md index 87215e2369..9d20fe82a3 100644 --- a/projects/hip/docs/markdown/hip_kernel_language.md +++ b/projects/hip/docs/markdown/hip_kernel_language.md @@ -385,6 +385,28 @@ For the cases where this overhead is not acceptable and programmer is willing to hcc provides hc::__lastbit_u32_u32(unsigned int input) and hc::__lastbit_u32_u64(unsigned long long int input). The index returned by __lastbit_ instructions starts at -1, while for ffs the index starts at 0. +### Floating-point Intrinsics +Following is the list of supported floating-point intrinsics. Note that intrinsics are supported on device only. + +| **Function** | +| --- | +| float __cosf ( float x )
Calculate the fast approximate cosine of the input argument. | +| float __expf ( float x )
Calculate the fast approximate base e exponential of the input argument. | +| float __frsqrt_rn ( float x )
Compute `1 / √x` in round-to-nearest-even mode. | +| float __fsqrt_rd ( float x )
Compute `√x` in round-down mode. | +| float __fsqrt_rn ( float x )
Compute `√x` in round-to-nearest-even mode. | +| float __fsqrt_ru ( float x )
Compute `√x` in round-up mode. | +| float __fsqrt_rz ( float x )
Compute `√x` in round-towards-zero mode. | +| float __log10f ( float x )
Calculate the fast approximate base 10 logarithm of the input argument. | +| float __log2f ( float x )
Calculate the fast approximate base 2 logarithm of the input argument. | +| float __logf ( float x )
Calculate the fast approximate base e logarithm of the input argument. | +| float __powf ( float x, float y )
Calculate the fast approximate of xy. | +| float __sinf ( float x )
Calculate the fast approximate sine of the input argument. | +| float __tanf ( float x )
Calculate the fast approximate tangent of the input argument. | +| double __dsqrt_rd ( double x )
Compute `√x` in round-down mode. | +| double __dsqrt_rn ( double x )
Compute `√x` in round-to-nearest-even mode. | +| double __dsqrt_ru ( double x )
Compute `√x` in round-up mode. | +| double __dsqrt_rz ( double x )
Compute `√x` in round-towards-zero mode. | ## Texture Functions Texture functions are not supported.