clang 20.0.0git
Macros | Functions
__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 __FAST_OR_SLOW(fast, slow)   slow
 
#define __RETURN_TYPE   int
 
#define __static_assert_type_size_equal(A, B)    static_assert((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 
)    slow

Definition at line 44 of file __clang_hip_math.h.

◆ __RETURN_TYPE

#define __RETURN_TYPE   int

Definition at line 55 of file __clang_hip_math.h.

◆ __static_assert_type_size_equal

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

Definition at line 79 of file __clang_hip_math.h.

Function Documentation

◆ __cosf()

__DEVICE__ float __cosf ( float  __x)

Definition at line 158 of file __clang_hip_math.h.

References __ocml_native_cos_f32().

Referenced by __tanf(), and cosf().

◆ __dadd_rn()

__DEVICE__ double __dadd_rn ( double  __x,
double  __y 
)

Definition at line 1153 of file __clang_hip_math.h.

References __y.

◆ __ddiv_rn()

__DEVICE__ double __ddiv_rn ( double  __x,
double  __y 
)

Definition at line 1175 of file __clang_hip_math.h.

References __y.

◆ __dmul_rn()

__DEVICE__ double __dmul_rn ( double  __x,
double  __y 
)

Definition at line 1197 of file __clang_hip_math.h.

References __y.

◆ __drcp_rn()

__DEVICE__ double __drcp_rn ( double  __x)

Definition at line 1211 of file __clang_hip_math.h.

◆ __dsqrt_rn()

__DEVICE__ double __dsqrt_rn ( double  __x)

Definition at line 1225 of file __clang_hip_math.h.

◆ __dsub_rn()

__DEVICE__ double __dsub_rn ( double  __x,
double  __y 
)

Definition at line 1247 of file __clang_hip_math.h.

References __y.

◆ __exp10f()

__DEVICE__ float __exp10f ( float  __x)

Definition at line 161 of file __clang_hip_math.h.

◆ __expf()

__DEVICE__ float __expf ( float  __x)

Definition at line 167 of file __clang_hip_math.h.

◆ __fadd_rn()

__DEVICE__ float __fadd_rn ( float  __x,
float  __y 
)

Definition at line 183 of file __clang_hip_math.h.

References __y.

◆ __fdiv_rn()

__DEVICE__ float __fdiv_rn ( float  __x,
float  __y 
)

Definition at line 197 of file __clang_hip_math.h.

References __y.

◆ __fdividef()

__DEVICE__ float __fdividef ( float  __x,
float  __y 
)

Definition at line 201 of file __clang_hip_math.h.

References __y.

◆ __finite()

__DEVICE__ __RETURN_TYPE __finite ( double  __x)

Definition at line 842 of file __clang_hip_math.h.

◆ __finitef()

__DEVICE__ __RETURN_TYPE __finitef ( float  __x)

Definition at line 441 of file __clang_hip_math.h.

◆ __fma_rn()

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

Definition at line 1269 of file __clang_hip_math.h.

References __y.

◆ __fmaf_rn()

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

Definition at line 222 of file __clang_hip_math.h.

References __y.

◆ __fmul_rn()

__DEVICE__ float __fmul_rn ( float  __x,
float  __y 
)

Definition at line 238 of file __clang_hip_math.h.

References __y.

◆ __frcp_rn()

__DEVICE__ float __frcp_rn ( float  __x)

Definition at line 252 of file __clang_hip_math.h.

◆ __frsqrt_rn()

__DEVICE__ float __frsqrt_rn ( float  __x)

Definition at line 256 of file __clang_hip_math.h.

◆ __fsqrt_rn()

__DEVICE__ float __fsqrt_rn ( float  __x)

Definition at line 269 of file __clang_hip_math.h.

◆ __fsub_rn()

__DEVICE__ float __fsub_rn ( float  __x,
float  __y 
)

Definition at line 283 of file __clang_hip_math.h.

References __y.

◆ __isinf()

__DEVICE__ __RETURN_TYPE __isinf ( double  __x)

Definition at line 845 of file __clang_hip_math.h.

◆ __isinff()

__DEVICE__ __RETURN_TYPE __isinff ( float  __x)

Definition at line 444 of file __clang_hip_math.h.

◆ __isnan()

__DEVICE__ __RETURN_TYPE __isnan ( double  __x)

Definition at line 848 of file __clang_hip_math.h.

◆ __isnanf()

__DEVICE__ __RETURN_TYPE __isnanf ( float  __x)

Definition at line 447 of file __clang_hip_math.h.

◆ __log10f()

__DEVICE__ float __log10f ( float  __x)

Definition at line 287 of file __clang_hip_math.h.

◆ __log2f()

__DEVICE__ float __log2f ( float  __x)

Definition at line 290 of file __clang_hip_math.h.

Referenced by log2f().

◆ __logf()

__DEVICE__ float __logf ( float  __x)

Definition at line 293 of file __clang_hip_math.h.

Referenced by logf().

◆ __make_mantissa()

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

Definition at line 140 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 102 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 119 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 85 of file __clang_hip_math.h.

Referenced by __make_mantissa().

◆ __powf()

__DEVICE__ float __powf ( float  __x,
float  __y 
)

Definition at line 296 of file __clang_hip_math.h.

References __y.

◆ __saturatef()

__DEVICE__ float __saturatef ( float  __x)

Definition at line 299 of file __clang_hip_math.h.

◆ __signbit()

__DEVICE__ __RETURN_TYPE __signbit ( double  __x)

Definition at line 1057 of file __clang_hip_math.h.

◆ __signbitf()

__DEVICE__ __RETURN_TYPE __signbitf ( float  __x)

Definition at line 649 of file __clang_hip_math.h.

◆ __sincosf()

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

Definition at line 302 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 308 of file __clang_hip_math.h.

References __ocml_native_sin_f32().

Referenced by __tanf(), and sinf().

◆ __tanf()

__DEVICE__ float __tanf ( float  __x)

Definition at line 311 of file __clang_hip_math.h.

References __cosf(), and __sinf().

◆ acos()

__DEVICE__ double acos ( double  __x)

Definition at line 734 of file __clang_hip_math.h.

◆ acosf()

__DEVICE__ float acosf ( float  __x)

Definition at line 332 of file __clang_hip_math.h.

◆ acosh()

__DEVICE__ double acosh ( double  __x)

Definition at line 737 of file __clang_hip_math.h.

◆ acoshf()

__DEVICE__ float acoshf ( float  __x)

Definition at line 335 of file __clang_hip_math.h.

◆ asin()

__DEVICE__ double asin ( double  __x)

Definition at line 740 of file __clang_hip_math.h.

◆ asinf()

__DEVICE__ float asinf ( float  __x)

Definition at line 338 of file __clang_hip_math.h.

◆ asinh()

__DEVICE__ double asinh ( double  __x)

Definition at line 743 of file __clang_hip_math.h.

◆ asinhf()

__DEVICE__ float asinhf ( float  __x)

Definition at line 341 of file __clang_hip_math.h.

◆ atan()

__DEVICE__ double atan ( double  __x)

Definition at line 746 of file __clang_hip_math.h.

◆ atan2()

__DEVICE__ double atan2 ( double  __x,
double  __y 
)

Definition at line 749 of file __clang_hip_math.h.

References __y.

◆ atan2f()

__DEVICE__ float atan2f ( float  __x,
float  __y 
)

Definition at line 344 of file __clang_hip_math.h.

References __y.

◆ atanf()

__DEVICE__ float atanf ( float  __x)

Definition at line 347 of file __clang_hip_math.h.

◆ atanh()

__DEVICE__ double atanh ( double  __x)

Definition at line 752 of file __clang_hip_math.h.

◆ atanhf()

__DEVICE__ float atanhf ( float  __x)

Definition at line 350 of file __clang_hip_math.h.

◆ cbrt()

__DEVICE__ double cbrt ( double  __x)

Definition at line 755 of file __clang_hip_math.h.

◆ cbrtf()

__DEVICE__ float cbrtf ( float  __x)

Definition at line 353 of file __clang_hip_math.h.

◆ ceil()

__DEVICE__ double ceil ( double  __x)

Definition at line 758 of file __clang_hip_math.h.

◆ ceilf()

__DEVICE__ float ceilf ( float  __x)

Definition at line 356 of file __clang_hip_math.h.

◆ copysign()

__DEVICE__ double copysign ( double  __x,
double  __y 
)

Definition at line 761 of file __clang_hip_math.h.

References __y.

◆ copysignf()

__DEVICE__ float copysignf ( float  __x,
float  __y 
)

Definition at line 359 of file __clang_hip_math.h.

References __y.

◆ cos()

__DEVICE__ double cos ( double  __x)

Definition at line 766 of file __clang_hip_math.h.

References __ocml_cos_f64().

◆ cosf()

__DEVICE__ float cosf ( float  __x)

Definition at line 362 of file __clang_hip_math.h.

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

◆ cosh()

__DEVICE__ double cosh ( double  __x)

Definition at line 769 of file __clang_hip_math.h.

◆ coshf()

__DEVICE__ float coshf ( float  __x)

Definition at line 365 of file __clang_hip_math.h.

◆ cospi()

__DEVICE__ double cospi ( double  __x)

Definition at line 772 of file __clang_hip_math.h.

References __ocml_cospi_f64().

◆ cospif()

__DEVICE__ float cospif ( float  __x)

Definition at line 368 of file __clang_hip_math.h.

References __ocml_cospi_f32().

◆ cyl_bessel_i0()

__DEVICE__ double cyl_bessel_i0 ( double  __x)

Definition at line 775 of file __clang_hip_math.h.

References __ocml_i0_f64().

◆ cyl_bessel_i0f()

__DEVICE__ float cyl_bessel_i0f ( float  __x)

Definition at line 371 of file __clang_hip_math.h.

References __ocml_i0_f32().

◆ cyl_bessel_i1()

__DEVICE__ double cyl_bessel_i1 ( double  __x)

Definition at line 778 of file __clang_hip_math.h.

References __ocml_i1_f64().

◆ cyl_bessel_i1f()

__DEVICE__ float cyl_bessel_i1f ( float  __x)

Definition at line 374 of file __clang_hip_math.h.

References __ocml_i1_f32().

◆ erf()

__DEVICE__ double erf ( double  __x)

Definition at line 781 of file __clang_hip_math.h.

◆ erfc()

__DEVICE__ double erfc ( double  __x)

Definition at line 784 of file __clang_hip_math.h.

◆ erfcf()

__DEVICE__ float erfcf ( float  __x)

Definition at line 377 of file __clang_hip_math.h.

◆ erfcinv()

__DEVICE__ double erfcinv ( double  __x)

Definition at line 787 of file __clang_hip_math.h.

◆ erfcinvf()

__DEVICE__ float erfcinvf ( float  __x)

Definition at line 380 of file __clang_hip_math.h.

◆ erfcx()

__DEVICE__ double erfcx ( double  __x)

Definition at line 790 of file __clang_hip_math.h.

◆ erfcxf()

__DEVICE__ float erfcxf ( float  __x)

Definition at line 383 of file __clang_hip_math.h.

◆ erff()

__DEVICE__ float erff ( float  __x)

Definition at line 386 of file __clang_hip_math.h.

◆ erfinv()

__DEVICE__ double erfinv ( double  __x)

Definition at line 793 of file __clang_hip_math.h.

◆ erfinvf()

__DEVICE__ float erfinvf ( float  __x)

Definition at line 389 of file __clang_hip_math.h.

◆ exp()

__DEVICE__ double exp ( double  __x)

Definition at line 796 of file __clang_hip_math.h.

◆ exp10()

__DEVICE__ double exp10 ( double  __x)

Definition at line 799 of file __clang_hip_math.h.

◆ exp10f()

__DEVICE__ float exp10f ( float  __x)

Definition at line 392 of file __clang_hip_math.h.

◆ exp2()

__DEVICE__ double exp2 ( double  __x)

Definition at line 802 of file __clang_hip_math.h.

◆ exp2f()

__DEVICE__ float exp2f ( float  __x)

Definition at line 395 of file __clang_hip_math.h.

◆ expf()

__DEVICE__ float expf ( float  __x)

Definition at line 398 of file __clang_hip_math.h.

◆ expm1()

__DEVICE__ double expm1 ( double  __x)

Definition at line 805 of file __clang_hip_math.h.

◆ expm1f()

__DEVICE__ float expm1f ( float  __x)

Definition at line 401 of file __clang_hip_math.h.

◆ fabs()

__DEVICE__ double fabs ( double  __x)

Definition at line 808 of file __clang_hip_math.h.

◆ fabsf()

__DEVICE__ float fabsf ( float  __x)

Definition at line 404 of file __clang_hip_math.h.

◆ fdim()

__DEVICE__ double fdim ( double  __x,
double  __y 
)

Definition at line 811 of file __clang_hip_math.h.

References __y.

◆ fdimf()

__DEVICE__ float fdimf ( float  __x,
float  __y 
)

Definition at line 407 of file __clang_hip_math.h.

References __y.

◆ fdividef()

__DEVICE__ float fdividef ( float  __x,
float  __y 
)

Definition at line 410 of file __clang_hip_math.h.

References __y.

◆ floor()

__DEVICE__ double floor ( double  __x)

Definition at line 814 of file __clang_hip_math.h.

◆ floorf()

__DEVICE__ float floorf ( float  __x)

Definition at line 413 of file __clang_hip_math.h.

◆ fma()

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

Definition at line 817 of file __clang_hip_math.h.

References __y.

◆ fmaf()

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

Definition at line 416 of file __clang_hip_math.h.

References __y.

◆ fmax()

__DEVICE__ double fmax ( double  __x,
double  __y 
)

Definition at line 822 of file __clang_hip_math.h.

References __y.

◆ fmaxf()

__DEVICE__ float fmaxf ( float  __x,
float  __y 
)

Definition at line 421 of file __clang_hip_math.h.

References __y.

◆ fmin()

__DEVICE__ double fmin ( double  __x,
double  __y 
)

Definition at line 825 of file __clang_hip_math.h.

References __y.

◆ fminf()

__DEVICE__ float fminf ( float  __x,
float  __y 
)

Definition at line 424 of file __clang_hip_math.h.

References __y.

◆ fmod()

__DEVICE__ double fmod ( double  __x,
double  __y 
)

Definition at line 828 of file __clang_hip_math.h.

References __y.

◆ fmodf()

__DEVICE__ float fmodf ( float  __x,
float  __y 
)

Definition at line 427 of file __clang_hip_math.h.

References __y.

◆ frexp()

__DEVICE__ double frexp ( double  __x,
int __nptr 
)

Definition at line 831 of file __clang_hip_math.h.

◆ frexpf()

__DEVICE__ float frexpf ( float  __x,
int __nptr 
)

Definition at line 430 of file __clang_hip_math.h.

◆ hypot()

__DEVICE__ double hypot ( double  __x,
double  __y 
)

Definition at line 836 of file __clang_hip_math.h.

References __y.

◆ hypotf()

__DEVICE__ float hypotf ( float  __x,
float  __y 
)

Definition at line 435 of file __clang_hip_math.h.

References __y.

◆ ilogb()

__DEVICE__ int ilogb ( double  __x)

Definition at line 839 of file __clang_hip_math.h.

◆ ilogbf()

__DEVICE__ int ilogbf ( float  __x)

Definition at line 438 of file __clang_hip_math.h.

◆ j0()

__DEVICE__ double j0 ( double  __x)

Definition at line 851 of file __clang_hip_math.h.

References __ocml_j0_f64().

Referenced by jn().

◆ j0f()

__DEVICE__ float j0f ( float  __x)

Definition at line 450 of file __clang_hip_math.h.

References __ocml_j0_f32().

Referenced by jnf().

◆ j1()

__DEVICE__ double j1 ( double  __x)

Definition at line 854 of file __clang_hip_math.h.

References __ocml_j1_f64().

Referenced by jn().

◆ j1f()

__DEVICE__ float j1f ( float  __x)

Definition at line 453 of file __clang_hip_math.h.

References __ocml_j1_f32().

Referenced by jnf().

◆ jn()

__DEVICE__ double jn ( int  __n,
double  __x 
)

Definition at line 857 of file __clang_hip_math.h.

References j0(), and j1().

◆ jnf()

__DEVICE__ float jnf ( int  __n,
float  __x 
)

Definition at line 456 of file __clang_hip_math.h.

References j0f(), and j1f().

◆ ldexp()

__DEVICE__ double ldexp ( double  __x,
int  __e 
)

Definition at line 878 of file __clang_hip_math.h.

◆ ldexpf()

__DEVICE__ float ldexpf ( float  __x,
int  __e 
)

Definition at line 477 of file __clang_hip_math.h.

◆ lgamma()

__DEVICE__ double lgamma ( double  __x)

Definition at line 881 of file __clang_hip_math.h.

References __ocml_lgamma_f64().

◆ lgammaf()

__DEVICE__ float lgammaf ( float  __x)

Definition at line 480 of file __clang_hip_math.h.

References __ocml_lgamma_f32().

◆ llrint()

__DEVICE__ long long int llrint ( double  __x)

Definition at line 884 of file __clang_hip_math.h.

◆ llrintf()

__DEVICE__ long long int llrintf ( float  __x)

Definition at line 483 of file __clang_hip_math.h.

◆ llround()

__DEVICE__ long long int llround ( double  __x)

Definition at line 887 of file __clang_hip_math.h.

◆ llroundf()

__DEVICE__ long long int llroundf ( float  __x)

Definition at line 486 of file __clang_hip_math.h.

◆ log()

__DEVICE__ double log ( double  __x)

Definition at line 890 of file __clang_hip_math.h.

◆ log10()

__DEVICE__ double log10 ( double  __x)

Definition at line 893 of file __clang_hip_math.h.

◆ log10f()

__DEVICE__ float log10f ( float  __x)

Definition at line 489 of file __clang_hip_math.h.

◆ log1p()

__DEVICE__ double log1p ( double  __x)

Definition at line 896 of file __clang_hip_math.h.

◆ log1pf()

__DEVICE__ float log1pf ( float  __x)

Definition at line 492 of file __clang_hip_math.h.

◆ log2()

__DEVICE__ double log2 ( double  __x)

Definition at line 899 of file __clang_hip_math.h.

◆ log2f()

__DEVICE__ float log2f ( float  __x)

Definition at line 495 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __log2f().

◆ logb()

__DEVICE__ double logb ( double  __x)

Definition at line 902 of file __clang_hip_math.h.

◆ logbf()

__DEVICE__ float logbf ( float  __x)

Definition at line 498 of file __clang_hip_math.h.

◆ logf()

__DEVICE__ float logf ( float  __x)

Definition at line 501 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __logf().

◆ lrint()

__DEVICE__ long int lrint ( double  __x)

Definition at line 905 of file __clang_hip_math.h.

◆ lrintf()

__DEVICE__ long int lrintf ( float  __x)

Definition at line 504 of file __clang_hip_math.h.

◆ lround()

__DEVICE__ long int lround ( double  __x)

Definition at line 908 of file __clang_hip_math.h.

◆ lroundf()

__DEVICE__ long int lroundf ( float  __x)

Definition at line 507 of file __clang_hip_math.h.

◆ modf()

__DEVICE__ double modf ( double  __x,
double __iptr 
)

Definition at line 911 of file __clang_hip_math.h.

References __ocml_modf_f64().

◆ modff()

__DEVICE__ float modff ( float  __x,
float __iptr 
)

Definition at line 510 of file __clang_hip_math.h.

References __ocml_modf_f32().

◆ nan()

__DEVICE__ double nan ( const char *  __tagp)

Definition at line 924 of file __clang_hip_math.h.

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

Referenced by mutateLongDoubleBuiltin().

◆ nanf()

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

Definition at line 522 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 952 of file __clang_hip_math.h.

◆ nearbyintf()

__DEVICE__ float nearbyintf ( float  __x)

Definition at line 543 of file __clang_hip_math.h.

◆ nextafter()

__DEVICE__ double nextafter ( double  __x,
double  __y 
)

Definition at line 955 of file __clang_hip_math.h.

References __y.

◆ nextafterf()

__DEVICE__ float nextafterf ( float  __x,
float  __y 
)

Definition at line 546 of file __clang_hip_math.h.

References __y.

◆ norm()

__DEVICE__ double norm ( int  __dim,
const double __a 
)

Definition at line 960 of file __clang_hip_math.h.

References __a.

◆ norm3d()

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

Definition at line 972 of file __clang_hip_math.h.

References __y.

◆ norm3df()

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

Definition at line 551 of file __clang_hip_math.h.

References __y.

◆ norm4d()

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

Definition at line 977 of file __clang_hip_math.h.

References __y.

◆ norm4df()

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

Definition at line 556 of file __clang_hip_math.h.

References __y.

◆ normcdf()

__DEVICE__ double normcdf ( double  __x)

Definition at line 982 of file __clang_hip_math.h.

◆ normcdff()

__DEVICE__ float normcdff ( float  __x)

Definition at line 561 of file __clang_hip_math.h.

◆ normcdfinv()

__DEVICE__ double normcdfinv ( double  __x)

Definition at line 985 of file __clang_hip_math.h.

◆ normcdfinvf()

__DEVICE__ float normcdfinvf ( float  __x)

Definition at line 564 of file __clang_hip_math.h.

◆ normf()

__DEVICE__ float normf ( int  __dim,
const float __a 
)

Definition at line 567 of file __clang_hip_math.h.

References __a.

◆ pow()

__DEVICE__ double pow ( double  __x,
double  __y 
)

Definition at line 988 of file __clang_hip_math.h.

References __y.

◆ powf()

__DEVICE__ float powf ( float  __x,
float  __y 
)

Definition at line 579 of file __clang_hip_math.h.

References __y.

◆ powi()

__DEVICE__ double powi ( double  __x,
int  __y 
)

Definition at line 991 of file __clang_hip_math.h.

References __y.

◆ powif()

__DEVICE__ float powif ( float  __x,
int  __y 
)

Definition at line 582 of file __clang_hip_math.h.

References __y.

◆ rcbrt()

__DEVICE__ double rcbrt ( double  __x)

Definition at line 994 of file __clang_hip_math.h.

◆ rcbrtf()

__DEVICE__ float rcbrtf ( float  __x)

Definition at line 585 of file __clang_hip_math.h.

◆ remainder()

__DEVICE__ double remainder ( double  __x,
double  __y 
)

Definition at line 997 of file __clang_hip_math.h.

References __y.

◆ remainderf()

__DEVICE__ float remainderf ( float  __x,
float  __y 
)

Definition at line 588 of file __clang_hip_math.h.

References __y.

◆ remquo()

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

Definition at line 1002 of file __clang_hip_math.h.

References __ocml_remquo_f64(), and __y.

◆ remquof()

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

Definition at line 593 of file __clang_hip_math.h.

References __ocml_remquo_f32(), 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 606 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 609 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 612 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 617 of file __clang_hip_math.h.

References __y.

◆ rnormf()

__DEVICE__ float rnormf ( int  __dim,
const float __a 
)

Definition at line 622 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 634 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 637 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.

◆ scalblnf()

__DEVICE__ float scalblnf ( float  __x,
long int  __n 
)

Definition at line 640 of file __clang_hip_math.h.

References INT_MAX.

◆ scalbn()

__DEVICE__ double scalbn ( double  __x,
int  __n 
)

Definition at line 1054 of file __clang_hip_math.h.

◆ scalbnf()

__DEVICE__ float scalbnf ( float  __x,
int  __n 
)

Definition at line 646 of file __clang_hip_math.h.

◆ sin()

__DEVICE__ double sin ( double  __x)

Definition at line 1060 of file __clang_hip_math.h.

References __ocml_sin_f64().

◆ sincos()

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

Definition at line 1063 of file __clang_hip_math.h.

References __ocml_sincos_f64().

◆ sincosf()

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

Definition at line 652 of file __clang_hip_math.h.

References __ocml_sincos_f32(), and __sincosf().

◆ sincospi()

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

Definition at line 1074 of file __clang_hip_math.h.

References __ocml_sincospi_f64().

◆ sincospif()

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

Definition at line 667 of file __clang_hip_math.h.

References __ocml_sincospi_f32().

◆ sinf()

__DEVICE__ float sinf ( float  __x)

Definition at line 678 of file __clang_hip_math.h.

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

◆ sinh()

__DEVICE__ double sinh ( double  __x)

Definition at line 1085 of file __clang_hip_math.h.

◆ sinhf()

__DEVICE__ float sinhf ( float  __x)

Definition at line 681 of file __clang_hip_math.h.

◆ sinpi()

__DEVICE__ double sinpi ( double  __x)

Definition at line 1088 of file __clang_hip_math.h.

References __ocml_sinpi_f64().

◆ sinpif()

__DEVICE__ float sinpif ( float  __x)

Definition at line 684 of file __clang_hip_math.h.

References __ocml_sinpi_f32().

◆ sqrt()

__DEVICE__ double sqrt ( double  __x)

Definition at line 1091 of file __clang_hip_math.h.

◆ sqrtf()

__DEVICE__ float sqrtf ( float  __x)

Definition at line 687 of file __clang_hip_math.h.

◆ tan()

__DEVICE__ double tan ( double  __x)

Definition at line 1094 of file __clang_hip_math.h.

References __ocml_tan_f64().

◆ tanf()

__DEVICE__ float tanf ( float  __x)

Definition at line 690 of file __clang_hip_math.h.

References __ocml_tan_f32().

◆ tanh()

__DEVICE__ double tanh ( double  __x)

Definition at line 1097 of file __clang_hip_math.h.

◆ tanhf()

__DEVICE__ float tanhf ( float  __x)

Definition at line 693 of file __clang_hip_math.h.

◆ tgamma()

__DEVICE__ double tgamma ( double  __x)

Definition at line 1100 of file __clang_hip_math.h.

References __ocml_tgamma_f64().

◆ tgammaf()

__DEVICE__ float tgammaf ( float  __x)

Definition at line 696 of file __clang_hip_math.h.

References __ocml_tgamma_f32().

◆ trunc()

__DEVICE__ double trunc ( double  __x)

Definition at line 1103 of file __clang_hip_math.h.

◆ truncf()

__DEVICE__ float truncf ( float  __x)

Definition at line 699 of file __clang_hip_math.h.

◆ y0()

__DEVICE__ double y0 ( double  __x)

Definition at line 1106 of file __clang_hip_math.h.

References __ocml_y0_f64().

Referenced by yn().

◆ y0f()

__DEVICE__ float y0f ( float  __x)

Definition at line 702 of file __clang_hip_math.h.

References __ocml_y0_f32().

Referenced by ynf().

◆ y1()

__DEVICE__ double y1 ( double  __x)

Definition at line 1109 of file __clang_hip_math.h.

References __ocml_y1_f64().

Referenced by yn().

◆ y1f()

__DEVICE__ float y1f ( float  __x)

Definition at line 705 of file __clang_hip_math.h.

References __ocml_y1_f32().

Referenced by ynf().

◆ yn()

__DEVICE__ double yn ( int  __n,
double  __x 
)

Definition at line 1112 of file __clang_hip_math.h.

References y0(), and y1().

◆ ynf()

__DEVICE__ float ynf ( int  __n,
float  __x 
)

Definition at line 708 of file __clang_hip_math.h.

References y0f(), and y1f().