diff --git a/projects/clr/hipamd/docs/markdown/hip_kernel_language.md b/projects/clr/hipamd/docs/markdown/hip_kernel_language.md index e382ede4b3..23cde7fee6 100644 --- a/projects/clr/hipamd/docs/markdown/hip_kernel_language.md +++ b/projects/clr/hipamd/docs/markdown/hip_kernel_language.md @@ -299,6 +299,42 @@ Following is the list of supported single precision mathematical functions. | float tanhf ( float x )
Calculate the hyperbolic tangent of the input argument. | ✓ | ✓ | | float truncf ( float x )
Truncate input argument to the integral part. | ✓ | ✓ | | float tgammaf ( float x )
Calculate the gamma function of the input argument. | ✓ | ✓ | +| float erfcinvf ( float y )
Calculate the inverse complementary function of the input argument. | ✓ | ✓ | +| float erfcxf ( float x )
Calculate the scaled complementary error function of the input argument. | ✓ | ✓ | +| float erfinvf ( float y )
Calculate the inverse error function of the input argument. | ✓ | ✓ | +| float fdividef ( float x, float y )
Divide two floating point values. | ✓ | ✓ | +| float frexpf ( float x, int *nptr )
Extract mantissa and exponent of a floating-point value. | ✓ | ✓ | +| float j0f ( float x )
Calculate the value of the Bessel function of the first kind of order 0 for the input argument. | ✓ | ✓ | +| float j1f ( float x )
Calculate the value of the Bessel function of the first kind of order 1 for the input argument. | ✓ | ✓ | +| float jnf ( int n, float x )
Calculate the value of the Bessel function of the first kind of order n for the input argument. | ✓ | ✓ | +| float lgammaf ( float x )
Calculate the natural logarithm of the absolute value of the gamma function of the input argument. | ✓ | ✓ | +| long long int llrintf ( float x )
Round input to nearest integer value. | ✓ | ✓ | +| long long int llroundf ( float x )
Round to nearest integer value. | ✓ | ✓ | +| long int lrintf ( float x )
Round input to nearest integer value. | ✓ | ✓ | +| long int lroundf ( float x )
Round to nearest integer value. | ✓ | ✓ | +| float modff ( float x, float *iptr )
Break down the input argument into fractional and integral parts. | ✓ | ✓ | +| float nextafterf ( float x, float y )
Returns next representable single-precision floating-point value after argument. | ✓ | ✓ | +| float norm3df ( float a, float b, float c )
Calculate the square root of the sum of squares of three coordinates of the argument. | ✓ | ✓ | +| float norm4df ( float a, float b, float c, float d )
Calculate the square root of the sum of squares of four coordinates of the argument. | ✓ | ✓ | +| float normcdff ( float y )
Calculate the standard normal cumulative distribution function. | ✓ | ✓ | +| float normcdfinvf ( float y )
Calculate the inverse of the standard normal cumulative distribution function. | ✓ | ✓ | +| float normf ( int dim, const float *a )
Calculate the square root of the sum of squares of any number of coordinates. | ✓ | ✓ | +| float rcbrtf ( float x )
Calculate the reciprocal cube root function. | ✓ | ✓ | +| float remquof ( float x, float y, int *quo )
Compute single-precision floating-point remainder and part of quotient. | ✓ | ✓ | +| float rhypotf ( float x, float y )
Calculate one over the square root of the sum of squares of two arguments. | ✓ | ✓ | +| float rintf ( float x )
Round input to nearest integer value in floating-point. | ✓ | ✓ | +| float rnorm3df ( float a, float b, float c )
Calculate one over the square root of the sum of squares of three coordinates of the argument. | ✓ | ✓ | +| float rnorm4df ( float a, float b, float c, float d )
Calculate one over the square root of the sum of squares of four coordinates of the argument. | ✓ | ✓ | +| float rnormf ( int dim, const float *a )
Calculate the reciprocal of square root of the sum of squares of any number of coordinates. | ✓ | ✓ | +| float scalblnf ( float x, long int n )
Scale floating-point input by integer power of two. | ✓ | ✓ | +| void sincosf ( float x, float *sptr, float *cptr )
Calculate the sine and cosine of the first input argument. | ✓ | ✓ | +| void sincospif ( float x, float *sptr, float *cptr )
Calculate the sine and cosine of the first input argument multiplied by PI. | ✓ | ✓ | +| float y0f ( float x )
Calculate the value of the Bessel function of the second kind of order 0 for the input argument. | ✓ | ✓ | +| float y1f ( float x )
Calculate the value of the Bessel function of the second kind of order 1 for the input argument. | ✓ | ✓ | +| float ynf ( int n, float x )
Calculate the value of the Bessel function of the second kind of order n for the input argument. | ✓ | ✓ | + + + [1] __RETURN_TYPE is dependent on compiler. It is usually 'int' for C compilers and 'bool' for C++ compilers. [↩](#a1) ### Double Precision Mathematical Functions @@ -360,6 +396,40 @@ Following is the list of supported double precision mathematical functions. | double tanh ( double x )
Calculate the hyperbolic tangent of the input argument. | ✓ | ✓ | | double tgamma ( double x )
Calculate the gamma function of the input argument. | ✓ | ✓ | | double trunc ( double x )
Truncate input argument to the integral part. | ✓ | ✓ | +| double erfcinv ( double y )
Calculate the inverse complementary function of the input argument. | ✓ | ✓ | +| double erfcx ( double x )
Calculate the scaled complementary error function of the input argument. | ✓ | ✓ | +| double erfinv ( double y )
Calculate the inverse error function of the input argument. | ✓ | ✓ | +| double frexp ( float x, int *nptr )
Extract mantissa and exponent of a floating-point value. | ✓ | ✓ | +| double j0 ( double x )
Calculate the value of the Bessel function of the first kind of order 0 for the input argument. | ✓ | ✓ | +| double j1 ( double x )
Calculate the value of the Bessel function of the first kind of order 1 for the input argument. | ✓ | ✓ | +| double jn ( int n, double x )
Calculate the value of the Bessel function of the first kind of order n for the input argument. | ✓ | ✓ | +| double lgamma ( double x )
Calculate the natural logarithm of the absolute value of the gamma function of the input argument. | ✓ | ✓ | +| long long int llrint ( double x )
Round input to nearest integer value. | ✓ | ✓ | +| long long int llround ( double x )
Round to nearest integer value. | ✓ | ✓ | +| long int lrint ( double x )
Round input to nearest integer value. | ✓ | ✓ | +| long int lround ( double x )
Round to nearest integer value. | ✓ | ✓ | +| double modf ( double x, double *iptr )
Break down the input argument into fractional and integral parts. | ✓ | ✓ | +| double nextafter ( double x, double y )
Returns next representable single-precision floating-point value after argument. | ✓ | ✓ | +| double norm3d ( double a, double b, double c )
Calculate the square root of the sum of squares of three coordinates of the argument. | ✓ | ✓ | +| float norm4d ( double a, double b, double c, double d )
Calculate the square root of the sum of squares of four coordinates of the argument. | ✓ | ✓ | +| double normcdf ( double y )
Calculate the standard normal cumulative distribution function. | ✓ | ✓ | +| double normcdfinv ( double y )
Calculate the inverse of the standard normal cumulative distribution function. | ✓ | ✓ | +| double rcbrt ( double x )
Calculate the reciprocal cube root function. | ✓ | ✓ | +| double remquo ( double x, double y, int *quo )
Compute single-precision floating-point remainder and part of quotient. | ✓ | ✓ | +| double rhypot ( double x, double y )
Calculate one over the square root of the sum of squares of two arguments. | ✓ | ✓ | +| double rint ( double x )
Round input to nearest integer value in floating-point. | ✓ | ✓ | +| double rnorm3d ( double a, double b, double c )
Calculate one over the square root of the sum of squares of three coordinates of the argument. | ✓ | ✓ | +| double rnorm4d ( double a, double b, double c, double d )
Calculate one over the square root of the sum of squares of four coordinates of the argument. | ✓ | ✓ | +| double rnorm ( int dim, const double *a )
Calculate the reciprocal of square root of the sum of squares of any number of coordinates. | ✓ | ✓ | +| double scalbln ( double x, long int n )
Scale floating-point input by integer power of two. | ✓ | ✓ | +| void sincos ( double x, double *sptr, double *cptr )
Calculate the sine and cosine of the first input argument. | ✓ | ✓ | +| void sincospi ( double x, double *sptr, double *cptr )
Calculate the sine and cosine of the first input argument multiplied by PI. | ✓ | ✓ | +| double y0f ( double x )
Calculate the value of the Bessel function of the second kind of order 0 for the input argument. | ✓ | ✓ | +| double y1 ( double x )
Calculate the value of the Bessel function of the second kind of order 1 for the input argument. | ✓ | ✓ | +| double yn ( int n, double x )
Calculate the value of the Bessel function of the second kind of order n for the input argument. | ✓ | ✓ | + + + [1] __RETURN_TYPE is dependent on compiler. It is usually 'int' for C compilers and 'bool' for C++ compilers. [↩](#a2) ### Integer Intrinsics