clang 22.0.0git
__clang_hip_math.h File Reference
#include <limits.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define __DEVICE__   static __device__ inline __attribute__((always_inline))
#define __PRIVATE_AS   __attribute__((opencl_private))
#define __FAST_OR_SLOW(fast, slow)
#define __RETURN_TYPE   int
#define __static_assert_type_size_equal(A, B)

Functions

__DEVICE__ uint64_t __make_mantissa_base8 (const char *__tagp __attribute__((nonnull)))
__DEVICE__ uint64_t __make_mantissa_base10 (const char *__tagp __attribute__((nonnull)))
__DEVICE__ uint64_t __make_mantissa_base16 (const char *__tagp __attribute__((nonnull)))
__DEVICE__ uint64_t __make_mantissa (const char *__tagp __attribute__((nonnull)))
__DEVICE__ float __cosf (float __x)
__DEVICE__ float __exp10f (float __x)
__DEVICE__ float __expf (float __x)
__DEVICE__ float __fadd_rn (float __x, float __y)
__DEVICE__ float __fdiv_rn (float __x, float __y)
__DEVICE__ float __fdividef (float __x, float __y)
__DEVICE__ float __fmaf_rn (float __x, float __y, float __z)
__DEVICE__ float __fmul_rn (float __x, float __y)
__DEVICE__ float __frcp_rn (float __x)
__DEVICE__ float __frsqrt_rn (float __x)
__DEVICE__ float __fsqrt_rn (float __x)
__DEVICE__ float __fsub_rn (float __x, float __y)
__DEVICE__ float __log10f (float __x)
__DEVICE__ float __log2f (float __x)
__DEVICE__ float __logf (float __x)
__DEVICE__ float __powf (float __x, float __y)
__DEVICE__ float __saturatef (float __x)
__DEVICE__ void __sincosf (float __x, float *__sinptr, float *__cosptr)
__DEVICE__ float __sinf (float __x)
__DEVICE__ float __tanf (float __x)
__DEVICE__ float acosf (float __x)
__DEVICE__ float acoshf (float __x)
__DEVICE__ float asinf (float __x)
__DEVICE__ float asinhf (float __x)
__DEVICE__ float atan2f (float __x, float __y)
__DEVICE__ float atanf (float __x)
__DEVICE__ float atanhf (float __x)
__DEVICE__ float cbrtf (float __x)
__DEVICE__ float ceilf (float __x)
__DEVICE__ float copysignf (float __x, float __y)
__DEVICE__ float cosf (float __x)
__DEVICE__ float coshf (float __x)
__DEVICE__ float cospif (float __x)
__DEVICE__ float cyl_bessel_i0f (float __x)
__DEVICE__ float cyl_bessel_i1f (float __x)
__DEVICE__ float erfcf (float __x)
__DEVICE__ float erfcinvf (float __x)
__DEVICE__ float erfcxf (float __x)
__DEVICE__ float erff (float __x)
__DEVICE__ float erfinvf (float __x)
__DEVICE__ float exp10f (float __x)
__DEVICE__ float exp2f (float __x)
__DEVICE__ float expf (float __x)
__DEVICE__ float expm1f (float __x)
__DEVICE__ float fabsf (float __x)
__DEVICE__ float fdimf (float __x, float __y)
__DEVICE__ float fdividef (float __x, float __y)
__DEVICE__ float floorf (float __x)
__DEVICE__ float fmaf (float __x, float __y, float __z)
__DEVICE__ float fmaxf (float __x, float __y)
__DEVICE__ float fminf (float __x, float __y)
__DEVICE__ float fmodf (float __x, float __y)
__DEVICE__ float frexpf (float __x, int *__nptr)
__DEVICE__ float hypotf (float __x, float __y)
__DEVICE__ int ilogbf (float __x)
__DEVICE__ __RETURN_TYPE __finitef (float __x)
__DEVICE__ __RETURN_TYPE __isinff (float __x)
__DEVICE__ __RETURN_TYPE __isnanf (float __x)
__DEVICE__ float j0f (float __x)
__DEVICE__ float j1f (float __x)
__DEVICE__ float jnf (int __n, float __x)
__DEVICE__ float ldexpf (float __x, int __e)
__DEVICE__ float lgammaf (float __x)
__DEVICE__ long long int llrintf (float __x)
__DEVICE__ long long int llroundf (float __x)
__DEVICE__ float log10f (float __x)
__DEVICE__ float log1pf (float __x)
__DEVICE__ float log2f (float __x)
__DEVICE__ float logbf (float __x)
__DEVICE__ float logf (float __x)
__DEVICE__ long int lrintf (float __x)
__DEVICE__ long int lroundf (float __x)
__DEVICE__ float modff (float __x, float *__iptr)
__DEVICE__ float nanf (const char *__tagp __attribute__((nonnull)))
__DEVICE__ float nearbyintf (float __x)
__DEVICE__ float nextafterf (float __x, float __y)
__DEVICE__ float norm3df (float __x, float __y, float __z)
__DEVICE__ float norm4df (float __x, float __y, float __z, float __w)
__DEVICE__ float normcdff (float __x)
__DEVICE__ float normcdfinvf (float __x)
__DEVICE__ float normf (int __dim, const float *__a)
__DEVICE__ float powf (float __x, float __y)
__DEVICE__ float powif (float __x, int __y)
__DEVICE__ float rcbrtf (float __x)
__DEVICE__ float remainderf (float __x, float __y)
__DEVICE__ float remquof (float __x, float __y, int *__quo)
__DEVICE__ float rhypotf (float __x, float __y)
__DEVICE__ float rintf (float __x)
__DEVICE__ float rnorm3df (float __x, float __y, float __z)
__DEVICE__ float rnorm4df (float __x, float __y, float __z, float __w)
__DEVICE__ float rnormf (int __dim, const float *__a)
__DEVICE__ float roundf (float __x)
__DEVICE__ float rsqrtf (float __x)
__DEVICE__ float scalblnf (float __x, long int __n)
__DEVICE__ float scalbnf (float __x, int __n)
__DEVICE__ __RETURN_TYPE __signbitf (float __x)
__DEVICE__ void sincosf (float __x, float *__sinptr, float *__cosptr)
__DEVICE__ void sincospif (float __x, float *__sinptr, float *__cosptr)
__DEVICE__ float sinf (float __x)
__DEVICE__ float sinhf (float __x)
__DEVICE__ float sinpif (float __x)
__DEVICE__ float sqrtf (float __x)
__DEVICE__ float tanf (float __x)
__DEVICE__ float tanhf (float __x)
__DEVICE__ float tgammaf (float __x)
__DEVICE__ float truncf (float __x)
__DEVICE__ float y0f (float __x)
__DEVICE__ float y1f (float __x)
__DEVICE__ float ynf (int __n, float __x)
__DEVICE__ double acos (double __x)
__DEVICE__ double acosh (double __x)
__DEVICE__ double asin (double __x)
__DEVICE__ double asinh (double __x)
__DEVICE__ double atan (double __x)
__DEVICE__ double atan2 (double __x, double __y)
__DEVICE__ double atanh (double __x)
__DEVICE__ double cbrt (double __x)
__DEVICE__ double ceil (double __x)
__DEVICE__ double copysign (double __x, double __y)
__DEVICE__ double cos (double __x)
__DEVICE__ double cosh (double __x)
__DEVICE__ double cospi (double __x)
__DEVICE__ double cyl_bessel_i0 (double __x)
__DEVICE__ double cyl_bessel_i1 (double __x)
__DEVICE__ double erf (double __x)
__DEVICE__ double erfc (double __x)
__DEVICE__ double erfcinv (double __x)
__DEVICE__ double erfcx (double __x)
__DEVICE__ double erfinv (double __x)
__DEVICE__ double exp (double __x)
__DEVICE__ double exp10 (double __x)
__DEVICE__ double exp2 (double __x)
__DEVICE__ double expm1 (double __x)
__DEVICE__ double fabs (double __x)
__DEVICE__ double fdim (double __x, double __y)
__DEVICE__ double floor (double __x)
__DEVICE__ double fma (double __x, double __y, double __z)
__DEVICE__ double fmax (double __x, double __y)
__DEVICE__ double fmin (double __x, double __y)
__DEVICE__ double fmod (double __x, double __y)
__DEVICE__ double frexp (double __x, int *__nptr)
__DEVICE__ double hypot (double __x, double __y)
__DEVICE__ int ilogb (double __x)
__DEVICE__ __RETURN_TYPE __finite (double __x)
__DEVICE__ __RETURN_TYPE __isinf (double __x)
__DEVICE__ __RETURN_TYPE __isnan (double __x)
__DEVICE__ double j0 (double __x)
__DEVICE__ double j1 (double __x)
__DEVICE__ double jn (int __n, double __x)
__DEVICE__ double ldexp (double __x, int __e)
__DEVICE__ double lgamma (double __x)
__DEVICE__ long long int llrint (double __x)
__DEVICE__ long long int llround (double __x)
__DEVICE__ double log (double __x)
__DEVICE__ double log10 (double __x)
__DEVICE__ double log1p (double __x)
__DEVICE__ double log2 (double __x)
__DEVICE__ double logb (double __x)
__DEVICE__ long int lrint (double __x)
__DEVICE__ long int lround (double __x)
__DEVICE__ double modf (double __x, double *__iptr)
__DEVICE__ double nan (const char *__tagp)
__DEVICE__ double nearbyint (double __x)
__DEVICE__ double nextafter (double __x, double __y)
__DEVICE__ double norm (int __dim, const double *__a)
__DEVICE__ double norm3d (double __x, double __y, double __z)
__DEVICE__ double norm4d (double __x, double __y, double __z, double __w)
__DEVICE__ double normcdf (double __x)
__DEVICE__ double normcdfinv (double __x)
__DEVICE__ double pow (double __x, double __y)
__DEVICE__ double powi (double __x, int __y)
__DEVICE__ double rcbrt (double __x)
__DEVICE__ double remainder (double __x, double __y)
__DEVICE__ double remquo (double __x, double __y, int *__quo)
__DEVICE__ double rhypot (double __x, double __y)
__DEVICE__ double rint (double __x)
__DEVICE__ double rnorm (int __dim, const double *__a)
__DEVICE__ double rnorm3d (double __x, double __y, double __z)
__DEVICE__ double rnorm4d (double __x, double __y, double __z, double __w)
__DEVICE__ double round (double __x)
__DEVICE__ double rsqrt (double __x)
__DEVICE__ double scalbln (double __x, long int __n)
__DEVICE__ double scalbn (double __x, int __n)
__DEVICE__ __RETURN_TYPE __signbit (double __x)
__DEVICE__ double sin (double __x)
__DEVICE__ void sincos (double __x, double *__sinptr, double *__cosptr)
__DEVICE__ void sincospi (double __x, double *__sinptr, double *__cosptr)
__DEVICE__ double sinh (double __x)
__DEVICE__ double sinpi (double __x)
__DEVICE__ double sqrt (double __x)
__DEVICE__ double tan (double __x)
__DEVICE__ double tanh (double __x)
__DEVICE__ double tgamma (double __x)
__DEVICE__ double trunc (double __x)
__DEVICE__ double y0 (double __x)
__DEVICE__ double y1 (double __x)
__DEVICE__ double yn (int __n, double __x)
__DEVICE__ double __dadd_rn (double __x, double __y)
__DEVICE__ double __ddiv_rn (double __x, double __y)
__DEVICE__ double __dmul_rn (double __x, double __y)
__DEVICE__ double __drcp_rn (double __x)
__DEVICE__ double __dsqrt_rn (double __x)
__DEVICE__ double __dsub_rn (double __x, double __y)
__DEVICE__ double __fma_rn (double __x, double __y, double __z)

Macro Definition Documentation

◆ __DEVICE__

#define __DEVICE__   static __device__ inline __attribute__((always_inline))

Definition at line 33 of file __clang_hip_math.h.

◆ __FAST_OR_SLOW

#define __FAST_OR_SLOW ( fast,
slow )
Value:
slow

Definition at line 47 of file __clang_hip_math.h.

Referenced by cosf(), log2f(), logf(), and sinf().

◆ __PRIVATE_AS

#define __PRIVATE_AS   __attribute__((opencl_private))

Definition at line 38 of file __clang_hip_math.h.

◆ __RETURN_TYPE

#define __RETURN_TYPE   int

◆ __static_assert_type_size_equal

#define __static_assert_type_size_equal ( A,
B )
Value:
static_assert((A) == (B), "")

Definition at line 82 of file __clang_hip_math.h.

Referenced by nan(), and nanf().

Function Documentation

◆ __cosf()

__DEVICE__ float __cosf ( float __x)

Definition at line 161 of file __clang_hip_math.h.

References __ocml_native_cos_f32().

Referenced by __tanf().

◆ __dadd_rn()

__DEVICE__ double __dadd_rn ( double __x,
double __y )

Definition at line 1154 of file __clang_hip_math.h.

References __y.

◆ __ddiv_rn()

__DEVICE__ double __ddiv_rn ( double __x,
double __y )

Definition at line 1176 of file __clang_hip_math.h.

References __y.

◆ __dmul_rn()

__DEVICE__ double __dmul_rn ( double __x,
double __y )

Definition at line 1198 of file __clang_hip_math.h.

References __y.

◆ __drcp_rn()

__DEVICE__ double __drcp_rn ( double __x)

Definition at line 1212 of file __clang_hip_math.h.

◆ __dsqrt_rn()

__DEVICE__ double __dsqrt_rn ( double __x)

Definition at line 1226 of file __clang_hip_math.h.

◆ __dsub_rn()

__DEVICE__ double __dsub_rn ( double __x,
double __y )

Definition at line 1248 of file __clang_hip_math.h.

References __y.

◆ __exp10f()

__DEVICE__ float __exp10f ( float __x)

Definition at line 164 of file __clang_hip_math.h.

◆ __expf()

__DEVICE__ float __expf ( float __x)

Definition at line 170 of file __clang_hip_math.h.

◆ __fadd_rn()

__DEVICE__ float __fadd_rn ( float __x,
float __y )

Definition at line 186 of file __clang_hip_math.h.

References __y.

◆ __fdiv_rn()

__DEVICE__ float __fdiv_rn ( float __x,
float __y )

Definition at line 200 of file __clang_hip_math.h.

References __y.

◆ __fdividef()

__DEVICE__ float __fdividef ( float __x,
float __y )

Definition at line 204 of file __clang_hip_math.h.

References __y.

◆ __finite()

__DEVICE__ __RETURN_TYPE __finite ( double __x)

Definition at line 844 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __finitef()

__DEVICE__ __RETURN_TYPE __finitef ( float __x)

Definition at line 444 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __fma_rn()

__DEVICE__ double __fma_rn ( double __x,
double __y,
double __z )

Definition at line 1270 of file __clang_hip_math.h.

References __y.

◆ __fmaf_rn()

__DEVICE__ float __fmaf_rn ( float __x,
float __y,
float __z )

Definition at line 225 of file __clang_hip_math.h.

References __y.

◆ __fmul_rn()

__DEVICE__ float __fmul_rn ( float __x,
float __y )

Definition at line 241 of file __clang_hip_math.h.

References __y.

◆ __frcp_rn()

__DEVICE__ float __frcp_rn ( float __x)

Definition at line 255 of file __clang_hip_math.h.

◆ __frsqrt_rn()

__DEVICE__ float __frsqrt_rn ( float __x)

Definition at line 259 of file __clang_hip_math.h.

◆ __fsqrt_rn()

__DEVICE__ float __fsqrt_rn ( float __x)

Definition at line 272 of file __clang_hip_math.h.

◆ __fsub_rn()

__DEVICE__ float __fsub_rn ( float __x,
float __y )

Definition at line 286 of file __clang_hip_math.h.

References __y.

◆ __isinf()

Definition at line 847 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __isinff()

__DEVICE__ __RETURN_TYPE __isinff ( float __x)

Definition at line 447 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __isnan()

Definition at line 850 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __isnanf()

__DEVICE__ __RETURN_TYPE __isnanf ( float __x)

Definition at line 450 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __log10f()

__DEVICE__ float __log10f ( float __x)

Definition at line 290 of file __clang_hip_math.h.

◆ __log2f()

__DEVICE__ float __log2f ( float __x)

Definition at line 293 of file __clang_hip_math.h.

◆ __logf()

__DEVICE__ float __logf ( float __x)

Definition at line 296 of file __clang_hip_math.h.

◆ __make_mantissa()

__DEVICE__ uint64_t __make_mantissa ( const char *__tagp __attribute__(nonnull))

Definition at line 143 of file __clang_hip_math.h.

References __make_mantissa_base10(), __make_mantissa_base16(), and __make_mantissa_base8().

Referenced by nan(), and nanf().

◆ __make_mantissa_base10()

__DEVICE__ uint64_t __make_mantissa_base10 ( const char *__tagp __attribute__(nonnull))

Definition at line 105 of file __clang_hip_math.h.

Referenced by __make_mantissa().

◆ __make_mantissa_base16()

__DEVICE__ uint64_t __make_mantissa_base16 ( const char *__tagp __attribute__(nonnull))

Definition at line 122 of file __clang_hip_math.h.

Referenced by __make_mantissa().

◆ __make_mantissa_base8()

__DEVICE__ uint64_t __make_mantissa_base8 ( const char *__tagp __attribute__(nonnull))

Definition at line 88 of file __clang_hip_math.h.

Referenced by __make_mantissa().

◆ __powf()

__DEVICE__ float __powf ( float __x,
float __y )

Definition at line 299 of file __clang_hip_math.h.

References __y.

◆ __saturatef()

__DEVICE__ float __saturatef ( float __x)

Definition at line 302 of file __clang_hip_math.h.

◆ __signbit()

__DEVICE__ __RETURN_TYPE __signbit ( double __x)

Definition at line 1060 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __signbitf()

__DEVICE__ __RETURN_TYPE __signbitf ( float __x)

Definition at line 653 of file __clang_hip_math.h.

References __RETURN_TYPE.

◆ __sincosf()

__DEVICE__ void __sincosf ( float __x,
float * __sinptr,
float * __cosptr )

Definition at line 305 of file __clang_hip_math.h.

References __ocml_native_cos_f32(), and __ocml_native_sin_f32().

Referenced by sincosf().

◆ __sinf()

__DEVICE__ float __sinf ( float __x)

Definition at line 311 of file __clang_hip_math.h.

References __ocml_native_sin_f32().

Referenced by __tanf().

◆ __tanf()

__DEVICE__ float __tanf ( float __x)

Definition at line 314 of file __clang_hip_math.h.

References __cosf(), and __sinf().

◆ acos()

__DEVICE__ double acos ( double __x)

Definition at line 736 of file __clang_hip_math.h.

◆ acosf()

__DEVICE__ float acosf ( float __x)

Definition at line 335 of file __clang_hip_math.h.

◆ acosh()

__DEVICE__ double acosh ( double __x)

Definition at line 739 of file __clang_hip_math.h.

◆ acoshf()

__DEVICE__ float acoshf ( float __x)

Definition at line 338 of file __clang_hip_math.h.

◆ asin()

__DEVICE__ double asin ( double __x)

Definition at line 742 of file __clang_hip_math.h.

◆ asinf()

__DEVICE__ float asinf ( float __x)

Definition at line 341 of file __clang_hip_math.h.

◆ asinh()

__DEVICE__ double asinh ( double __x)

Definition at line 745 of file __clang_hip_math.h.

◆ asinhf()

__DEVICE__ float asinhf ( float __x)

Definition at line 344 of file __clang_hip_math.h.

◆ atan()

__DEVICE__ double atan ( double __x)

Definition at line 748 of file __clang_hip_math.h.

◆ atan2()

__DEVICE__ double atan2 ( double __x,
double __y )

Definition at line 751 of file __clang_hip_math.h.

References __y.

◆ atan2f()

__DEVICE__ float atan2f ( float __x,
float __y )

Definition at line 347 of file __clang_hip_math.h.

References __y.

◆ atanf()

__DEVICE__ float atanf ( float __x)

Definition at line 350 of file __clang_hip_math.h.

◆ atanh()

__DEVICE__ double atanh ( double __x)

Definition at line 754 of file __clang_hip_math.h.

◆ atanhf()

__DEVICE__ float atanhf ( float __x)

Definition at line 353 of file __clang_hip_math.h.

◆ cbrt()

__DEVICE__ double cbrt ( double __x)

Definition at line 757 of file __clang_hip_math.h.

◆ cbrtf()

__DEVICE__ float cbrtf ( float __x)

Definition at line 356 of file __clang_hip_math.h.

◆ ceil()

__DEVICE__ double ceil ( double __x)

Definition at line 760 of file __clang_hip_math.h.

◆ ceilf()

__DEVICE__ float ceilf ( float __x)

Definition at line 359 of file __clang_hip_math.h.

◆ copysign()

__DEVICE__ double copysign ( double __x,
double __y )

Definition at line 763 of file __clang_hip_math.h.

References __y.

◆ copysignf()

__DEVICE__ float copysignf ( float __x,
float __y )

Definition at line 362 of file __clang_hip_math.h.

References __y.

◆ cos()

__DEVICE__ double cos ( double __x)

Definition at line 768 of file __clang_hip_math.h.

References __ocml_cos_f64().

◆ cosf()

__DEVICE__ float cosf ( float __x)

Definition at line 365 of file __clang_hip_math.h.

References __cosf(), __FAST_OR_SLOW, and __ocml_cos_f32().

◆ cosh()

__DEVICE__ double cosh ( double __x)

Definition at line 771 of file __clang_hip_math.h.

◆ coshf()

__DEVICE__ float coshf ( float __x)

Definition at line 368 of file __clang_hip_math.h.

◆ cospi()

__DEVICE__ double cospi ( double __x)

Definition at line 774 of file __clang_hip_math.h.

References __ocml_cospi_f64().

◆ cospif()

__DEVICE__ float cospif ( float __x)

Definition at line 371 of file __clang_hip_math.h.

References __ocml_cospi_f32().

◆ cyl_bessel_i0()

__DEVICE__ double cyl_bessel_i0 ( double __x)

Definition at line 777 of file __clang_hip_math.h.

References __ocml_i0_f64().

◆ cyl_bessel_i0f()

__DEVICE__ float cyl_bessel_i0f ( float __x)

Definition at line 374 of file __clang_hip_math.h.

References __ocml_i0_f32().

◆ cyl_bessel_i1()

__DEVICE__ double cyl_bessel_i1 ( double __x)

Definition at line 780 of file __clang_hip_math.h.

References __ocml_i1_f64().

◆ cyl_bessel_i1f()

__DEVICE__ float cyl_bessel_i1f ( float __x)

Definition at line 377 of file __clang_hip_math.h.

References __ocml_i1_f32().

◆ erf()

__DEVICE__ double erf ( double __x)

Definition at line 783 of file __clang_hip_math.h.

◆ erfc()

__DEVICE__ double erfc ( double __x)

Definition at line 786 of file __clang_hip_math.h.

◆ erfcf()

__DEVICE__ float erfcf ( float __x)

Definition at line 380 of file __clang_hip_math.h.

◆ erfcinv()

__DEVICE__ double erfcinv ( double __x)

Definition at line 789 of file __clang_hip_math.h.

◆ erfcinvf()

__DEVICE__ float erfcinvf ( float __x)

Definition at line 383 of file __clang_hip_math.h.

◆ erfcx()

__DEVICE__ double erfcx ( double __x)

Definition at line 792 of file __clang_hip_math.h.

◆ erfcxf()

__DEVICE__ float erfcxf ( float __x)

Definition at line 386 of file __clang_hip_math.h.

◆ erff()

__DEVICE__ float erff ( float __x)

Definition at line 389 of file __clang_hip_math.h.

◆ erfinv()

__DEVICE__ double erfinv ( double __x)

Definition at line 795 of file __clang_hip_math.h.

◆ erfinvf()

__DEVICE__ float erfinvf ( float __x)

Definition at line 392 of file __clang_hip_math.h.

◆ exp()

__DEVICE__ double exp ( double __x)

Definition at line 798 of file __clang_hip_math.h.

◆ exp10()

__DEVICE__ double exp10 ( double __x)

Definition at line 801 of file __clang_hip_math.h.

◆ exp10f()

__DEVICE__ float exp10f ( float __x)

Definition at line 395 of file __clang_hip_math.h.

◆ exp2()

__DEVICE__ double exp2 ( double __x)

Definition at line 804 of file __clang_hip_math.h.

◆ exp2f()

__DEVICE__ float exp2f ( float __x)

Definition at line 398 of file __clang_hip_math.h.

◆ expf()

__DEVICE__ float expf ( float __x)

Definition at line 401 of file __clang_hip_math.h.

◆ expm1()

__DEVICE__ double expm1 ( double __x)

Definition at line 807 of file __clang_hip_math.h.

◆ expm1f()

__DEVICE__ float expm1f ( float __x)

Definition at line 404 of file __clang_hip_math.h.

◆ fabs()

__DEVICE__ double fabs ( double __x)

Definition at line 810 of file __clang_hip_math.h.

◆ fabsf()

__DEVICE__ float fabsf ( float __x)

Definition at line 407 of file __clang_hip_math.h.

◆ fdim()

__DEVICE__ double fdim ( double __x,
double __y )

Definition at line 813 of file __clang_hip_math.h.

References __y.

◆ fdimf()

__DEVICE__ float fdimf ( float __x,
float __y )

Definition at line 410 of file __clang_hip_math.h.

References __y.

◆ fdividef()

__DEVICE__ float fdividef ( float __x,
float __y )

Definition at line 413 of file __clang_hip_math.h.

References __y.

◆ floor()

__DEVICE__ double floor ( double __x)

Definition at line 816 of file __clang_hip_math.h.

◆ floorf()

__DEVICE__ float floorf ( float __x)

Definition at line 416 of file __clang_hip_math.h.

◆ fma()

__DEVICE__ double fma ( double __x,
double __y,
double __z )

Definition at line 819 of file __clang_hip_math.h.

References __y.

◆ fmaf()

__DEVICE__ float fmaf ( float __x,
float __y,
float __z )

Definition at line 419 of file __clang_hip_math.h.

References __y.

◆ fmax()

__DEVICE__ double fmax ( double __x,
double __y )

Definition at line 824 of file __clang_hip_math.h.

References __y.

◆ fmaxf()

__DEVICE__ float fmaxf ( float __x,
float __y )

Definition at line 424 of file __clang_hip_math.h.

References __y.

◆ fmin()

__DEVICE__ double fmin ( double __x,
double __y )

Definition at line 827 of file __clang_hip_math.h.

References __y.

◆ fminf()

__DEVICE__ float fminf ( float __x,
float __y )

Definition at line 427 of file __clang_hip_math.h.

References __y.

◆ fmod()

__DEVICE__ double fmod ( double __x,
double __y )

Definition at line 830 of file __clang_hip_math.h.

References __y.

◆ fmodf()

__DEVICE__ float fmodf ( float __x,
float __y )

Definition at line 430 of file __clang_hip_math.h.

References __y.

◆ frexp()

__DEVICE__ double frexp ( double __x,
int * __nptr )

Definition at line 833 of file __clang_hip_math.h.

◆ frexpf()

__DEVICE__ float frexpf ( float __x,
int * __nptr )

Definition at line 433 of file __clang_hip_math.h.

◆ hypot()

__DEVICE__ double hypot ( double __x,
double __y )

Definition at line 838 of file __clang_hip_math.h.

References __y.

◆ hypotf()

__DEVICE__ float hypotf ( float __x,
float __y )

Definition at line 438 of file __clang_hip_math.h.

References __y.

◆ ilogb()

__DEVICE__ int ilogb ( double __x)

Definition at line 841 of file __clang_hip_math.h.

◆ ilogbf()

__DEVICE__ int ilogbf ( float __x)

Definition at line 441 of file __clang_hip_math.h.

◆ j0()

Definition at line 853 of file __clang_hip_math.h.

References __ocml_j0_f64().

Referenced by jn().

◆ j0f()

__DEVICE__ float j0f ( float __x)

Definition at line 453 of file __clang_hip_math.h.

References __ocml_j0_f32().

Referenced by jnf().

◆ j1()

Definition at line 856 of file __clang_hip_math.h.

References __ocml_j1_f64().

Referenced by jn().

◆ j1f()

__DEVICE__ float j1f ( float __x)

Definition at line 456 of file __clang_hip_math.h.

References __ocml_j1_f32().

Referenced by jnf().

◆ jn()

__DEVICE__ double jn ( int __n,
double __x )

Definition at line 859 of file __clang_hip_math.h.

References j0(), and j1().

◆ jnf()

__DEVICE__ float jnf ( int __n,
float __x )

Definition at line 459 of file __clang_hip_math.h.

References j0f(), and j1f().

◆ ldexp()

__DEVICE__ double ldexp ( double __x,
int __e )

Definition at line 880 of file __clang_hip_math.h.

◆ ldexpf()

__DEVICE__ float ldexpf ( float __x,
int __e )

Definition at line 480 of file __clang_hip_math.h.

◆ lgamma()

__DEVICE__ double lgamma ( double __x)

Definition at line 883 of file __clang_hip_math.h.

References __ocml_lgamma_f64().

◆ lgammaf()

__DEVICE__ float lgammaf ( float __x)

Definition at line 483 of file __clang_hip_math.h.

References __ocml_lgamma_f32().

◆ llrint()

__DEVICE__ long long int llrint ( double __x)

Definition at line 886 of file __clang_hip_math.h.

◆ llrintf()

__DEVICE__ long long int llrintf ( float __x)

Definition at line 486 of file __clang_hip_math.h.

◆ llround()

__DEVICE__ long long int llround ( double __x)

Definition at line 889 of file __clang_hip_math.h.

◆ llroundf()

__DEVICE__ long long int llroundf ( float __x)

Definition at line 489 of file __clang_hip_math.h.

◆ log()

__DEVICE__ double log ( double __x)

Definition at line 892 of file __clang_hip_math.h.

◆ log10()

__DEVICE__ double log10 ( double __x)

Definition at line 895 of file __clang_hip_math.h.

◆ log10f()

__DEVICE__ float log10f ( float __x)

Definition at line 492 of file __clang_hip_math.h.

◆ log1p()

__DEVICE__ double log1p ( double __x)

Definition at line 898 of file __clang_hip_math.h.

◆ log1pf()

__DEVICE__ float log1pf ( float __x)

Definition at line 495 of file __clang_hip_math.h.

◆ log2()

__DEVICE__ double log2 ( double __x)

Definition at line 901 of file __clang_hip_math.h.

◆ log2f()

__DEVICE__ float log2f ( float __x)

Definition at line 498 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __log2f().

◆ logb()

__DEVICE__ double logb ( double __x)

Definition at line 904 of file __clang_hip_math.h.

◆ logbf()

__DEVICE__ float logbf ( float __x)

Definition at line 501 of file __clang_hip_math.h.

◆ logf()

__DEVICE__ float logf ( float __x)

Definition at line 504 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __logf().

◆ lrint()

__DEVICE__ long int lrint ( double __x)

Definition at line 907 of file __clang_hip_math.h.

◆ lrintf()

__DEVICE__ long int lrintf ( float __x)

Definition at line 507 of file __clang_hip_math.h.

◆ lround()

__DEVICE__ long int lround ( double __x)

Definition at line 910 of file __clang_hip_math.h.

◆ lroundf()

__DEVICE__ long int lroundf ( float __x)

Definition at line 510 of file __clang_hip_math.h.

◆ modf()

__DEVICE__ double modf ( double __x,
double * __iptr )

Definition at line 913 of file __clang_hip_math.h.

References __ocml_modf_f64(), and __PRIVATE_AS.

◆ modff()

__DEVICE__ float modff ( float __x,
float * __iptr )

Definition at line 513 of file __clang_hip_math.h.

References __ocml_modf_f32(), and __PRIVATE_AS.

◆ nan()

__DEVICE__ double nan ( const char * __tagp)

Definition at line 925 of file __clang_hip_math.h.

References __make_mantissa(), __static_assert_type_size_equal, and sign().

Referenced by mutateLongDoubleBuiltin(), and trunc().

◆ nanf()

__DEVICE__ float nanf ( const char *__tagp __attribute__(nonnull))

Definition at line 524 of file __clang_hip_math.h.

References __make_mantissa(), __static_assert_type_size_equal, and sign().

◆ nearbyint()

__DEVICE__ double nearbyint ( double __x)

Definition at line 953 of file __clang_hip_math.h.

◆ nearbyintf()

__DEVICE__ float nearbyintf ( float __x)

Definition at line 545 of file __clang_hip_math.h.

◆ nextafter()

__DEVICE__ double nextafter ( double __x,
double __y )

Definition at line 956 of file __clang_hip_math.h.

References __y.

◆ nextafterf()

__DEVICE__ float nextafterf ( float __x,
float __y )

Definition at line 548 of file __clang_hip_math.h.

References __y.

◆ norm()

__DEVICE__ double norm ( int __dim,
const double * __a )

Definition at line 961 of file __clang_hip_math.h.

References __a.

◆ norm3d()

__DEVICE__ double norm3d ( double __x,
double __y,
double __z )

Definition at line 973 of file __clang_hip_math.h.

References __y.

◆ norm3df()

__DEVICE__ float norm3df ( float __x,
float __y,
float __z )

Definition at line 553 of file __clang_hip_math.h.

References __y.

◆ norm4d()

__DEVICE__ double norm4d ( double __x,
double __y,
double __z,
double __w )

Definition at line 978 of file __clang_hip_math.h.

References __y.

◆ norm4df()

__DEVICE__ float norm4df ( float __x,
float __y,
float __z,
float __w )

Definition at line 558 of file __clang_hip_math.h.

References __y.

◆ normcdf()

__DEVICE__ double normcdf ( double __x)

Definition at line 983 of file __clang_hip_math.h.

◆ normcdff()

__DEVICE__ float normcdff ( float __x)

Definition at line 563 of file __clang_hip_math.h.

◆ normcdfinv()

__DEVICE__ double normcdfinv ( double __x)

Definition at line 986 of file __clang_hip_math.h.

◆ normcdfinvf()

__DEVICE__ float normcdfinvf ( float __x)

Definition at line 566 of file __clang_hip_math.h.

◆ normf()

__DEVICE__ float normf ( int __dim,
const float * __a )

Definition at line 569 of file __clang_hip_math.h.

References __a.

◆ pow()

__DEVICE__ double pow ( double __x,
double __y )

Definition at line 989 of file __clang_hip_math.h.

References __y.

◆ powf()

__DEVICE__ float powf ( float __x,
float __y )

Definition at line 581 of file __clang_hip_math.h.

References __y.

◆ powi()

__DEVICE__ double powi ( double __x,
int __y )

Definition at line 992 of file __clang_hip_math.h.

References __y.

◆ powif()

__DEVICE__ float powif ( float __x,
int __y )

Definition at line 584 of file __clang_hip_math.h.

References __y.

◆ rcbrt()

__DEVICE__ double rcbrt ( double __x)

Definition at line 995 of file __clang_hip_math.h.

◆ rcbrtf()

__DEVICE__ float rcbrtf ( float __x)

Definition at line 587 of file __clang_hip_math.h.

◆ remainder()

__DEVICE__ double remainder ( double __x,
double __y )

Definition at line 998 of file __clang_hip_math.h.

References __y.

◆ remainderf()

__DEVICE__ float remainderf ( float __x,
float __y )

Definition at line 590 of file __clang_hip_math.h.

References __y.

◆ remquo()

__DEVICE__ double remquo ( double __x,
double __y,
int * __quo )

Definition at line 1003 of file __clang_hip_math.h.

References __ocml_remquo_f64(), __PRIVATE_AS, and __y.

◆ remquof()

__DEVICE__ float remquof ( float __x,
float __y,
int * __quo )

Definition at line 595 of file __clang_hip_math.h.

References __ocml_remquo_f32(), __PRIVATE_AS, and __y.

◆ rhypot()

__DEVICE__ double rhypot ( double __x,
double __y )

Definition at line 1015 of file __clang_hip_math.h.

References __y.

◆ rhypotf()

__DEVICE__ float rhypotf ( float __x,
float __y )

Definition at line 607 of file __clang_hip_math.h.

References __y.

◆ rint()

__DEVICE__ double rint ( double __x)

Definition at line 1018 of file __clang_hip_math.h.

◆ rintf()

__DEVICE__ float rintf ( float __x)

Definition at line 610 of file __clang_hip_math.h.

◆ rnorm()

__DEVICE__ double rnorm ( int __dim,
const double * __a )

Definition at line 1021 of file __clang_hip_math.h.

References __a.

◆ rnorm3d()

__DEVICE__ double rnorm3d ( double __x,
double __y,
double __z )

Definition at line 1033 of file __clang_hip_math.h.

References __y.

◆ rnorm3df()

__DEVICE__ float rnorm3df ( float __x,
float __y,
float __z )

Definition at line 613 of file __clang_hip_math.h.

References __y.

◆ rnorm4d()

__DEVICE__ double rnorm4d ( double __x,
double __y,
double __z,
double __w )

Definition at line 1038 of file __clang_hip_math.h.

References __y.

◆ rnorm4df()

__DEVICE__ float rnorm4df ( float __x,
float __y,
float __z,
float __w )

Definition at line 618 of file __clang_hip_math.h.

References __y.

◆ rnormf()

__DEVICE__ float rnormf ( int __dim,
const float * __a )

Definition at line 623 of file __clang_hip_math.h.

References __a.

◆ round()

__DEVICE__ double round ( double __x)

Definition at line 1043 of file __clang_hip_math.h.

◆ roundf()

__DEVICE__ float roundf ( float __x)

Definition at line 635 of file __clang_hip_math.h.

◆ rsqrt()

__DEVICE__ double rsqrt ( double __x)

Definition at line 1046 of file __clang_hip_math.h.

◆ rsqrtf()

__DEVICE__ float rsqrtf ( float __x)

Definition at line 638 of file __clang_hip_math.h.

◆ scalbln()

__DEVICE__ double scalbln ( double __x,
long int __n )

Definition at line 1049 of file __clang_hip_math.h.

References INT_MAX, and INT_MIN.

◆ scalblnf()

__DEVICE__ float scalblnf ( float __x,
long int __n )

Definition at line 641 of file __clang_hip_math.h.

References INT_MAX, and INT_MIN.

◆ scalbn()

__DEVICE__ double scalbn ( double __x,
int __n )

Definition at line 1057 of file __clang_hip_math.h.

◆ scalbnf()

__DEVICE__ float scalbnf ( float __x,
int __n )

Definition at line 650 of file __clang_hip_math.h.

◆ sin()

__DEVICE__ double sin ( double __x)

Definition at line 1063 of file __clang_hip_math.h.

References __ocml_sin_f64().

◆ sincos()

__DEVICE__ void sincos ( double __x,
double * __sinptr,
double * __cosptr )

Definition at line 1066 of file __clang_hip_math.h.

References __ocml_sincos_f64(), and __PRIVATE_AS.

◆ sincosf()

__DEVICE__ void sincosf ( float __x,
float * __sinptr,
float * __cosptr )

Definition at line 656 of file __clang_hip_math.h.

References __ocml_sincos_f32(), __PRIVATE_AS, and __sincosf().

◆ sincospi()

__DEVICE__ void sincospi ( double __x,
double * __sinptr,
double * __cosptr )

Definition at line 1076 of file __clang_hip_math.h.

References __ocml_sincospi_f64(), and __PRIVATE_AS.

◆ sincospif()

__DEVICE__ void sincospif ( float __x,
float * __sinptr,
float * __cosptr )

Definition at line 670 of file __clang_hip_math.h.

References __ocml_sincospi_f32(), and __PRIVATE_AS.

◆ sinf()

__DEVICE__ float sinf ( float __x)

Definition at line 680 of file __clang_hip_math.h.

References __FAST_OR_SLOW, __ocml_sin_f32(), and __sinf().

◆ sinh()

__DEVICE__ double sinh ( double __x)

Definition at line 1086 of file __clang_hip_math.h.

◆ sinhf()

__DEVICE__ float sinhf ( float __x)

Definition at line 683 of file __clang_hip_math.h.

◆ sinpi()

__DEVICE__ double sinpi ( double __x)

Definition at line 1089 of file __clang_hip_math.h.

References __ocml_sinpi_f64().

◆ sinpif()

__DEVICE__ float sinpif ( float __x)

Definition at line 686 of file __clang_hip_math.h.

References __ocml_sinpi_f32().

◆ sqrt()

__DEVICE__ double sqrt ( double __x)

Definition at line 1092 of file __clang_hip_math.h.

◆ sqrtf()

__DEVICE__ float sqrtf ( float __x)

Definition at line 689 of file __clang_hip_math.h.

◆ tan()

__DEVICE__ double tan ( double __x)

Definition at line 1095 of file __clang_hip_math.h.

References __ocml_tan_f64().

◆ tanf()

__DEVICE__ float tanf ( float __x)

Definition at line 692 of file __clang_hip_math.h.

References __ocml_tan_f32().

◆ tanh()

__DEVICE__ double tanh ( double __x)

Definition at line 1098 of file __clang_hip_math.h.

◆ tanhf()

__DEVICE__ float tanhf ( float __x)

Definition at line 695 of file __clang_hip_math.h.

◆ tgamma()

__DEVICE__ double tgamma ( double __x)

Definition at line 1101 of file __clang_hip_math.h.

References __ocml_tgamma_f64().

◆ tgammaf()

__DEVICE__ float tgammaf ( float __x)

Definition at line 698 of file __clang_hip_math.h.

References __ocml_tgamma_f32().

◆ trunc()

__DEVICE__ double trunc ( double __x)

Definition at line 1104 of file __clang_hip_math.h.

◆ truncf()

__DEVICE__ float truncf ( float __x)

Definition at line 701 of file __clang_hip_math.h.

◆ y0()

Definition at line 1107 of file __clang_hip_math.h.

References __ocml_y0_f64().

Referenced by yn().

◆ y0f()

__DEVICE__ float y0f ( float __x)

Definition at line 704 of file __clang_hip_math.h.

References __ocml_y0_f32().

Referenced by ynf().

◆ y1()

Definition at line 1110 of file __clang_hip_math.h.

References __ocml_y1_f64().

Referenced by yn().

◆ y1f()

__DEVICE__ float y1f ( float __x)

Definition at line 707 of file __clang_hip_math.h.

References __ocml_y1_f32().

Referenced by ynf().

◆ yn()

__DEVICE__ double yn ( int __n,
double __x )

Definition at line 1113 of file __clang_hip_math.h.

References y0(), and y1().

◆ ynf()

__DEVICE__ float ynf ( int __n,
float __x )

Definition at line 710 of file __clang_hip_math.h.

References y0f(), and y1f().