clang 19.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 29 of file __clang_hip_math.h.

◆ __FAST_OR_SLOW

#define __FAST_OR_SLOW (   fast,
  slow 
)    slow

Definition at line 40 of file __clang_hip_math.h.

◆ __RETURN_TYPE

#define __RETURN_TYPE   int

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

Function Documentation

◆ __cosf()

__DEVICE__ float __cosf ( float  __x)

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

References __y.

◆ __ddiv_rn()

__DEVICE__ double __ddiv_rn ( double  __x,
double  __y 
)

Definition at line 1171 of file __clang_hip_math.h.

References __y.

◆ __dmul_rn()

__DEVICE__ double __dmul_rn ( double  __x,
double  __y 
)

Definition at line 1193 of file __clang_hip_math.h.

References __y.

◆ __drcp_rn()

__DEVICE__ double __drcp_rn ( double  __x)

Definition at line 1207 of file __clang_hip_math.h.

◆ __dsqrt_rn()

__DEVICE__ double __dsqrt_rn ( double  __x)

Definition at line 1221 of file __clang_hip_math.h.

◆ __dsub_rn()

__DEVICE__ double __dsub_rn ( double  __x,
double  __y 
)

Definition at line 1243 of file __clang_hip_math.h.

References __y.

◆ __exp10f()

__DEVICE__ float __exp10f ( float  __x)

Definition at line 157 of file __clang_hip_math.h.

◆ __expf()

__DEVICE__ float __expf ( float  __x)

Definition at line 163 of file __clang_hip_math.h.

◆ __fadd_rn()

__DEVICE__ float __fadd_rn ( float  __x,
float  __y 
)

Definition at line 179 of file __clang_hip_math.h.

References __y.

◆ __fdiv_rn()

__DEVICE__ float __fdiv_rn ( float  __x,
float  __y 
)

Definition at line 193 of file __clang_hip_math.h.

References __y.

◆ __fdividef()

__DEVICE__ float __fdividef ( float  __x,
float  __y 
)

Definition at line 197 of file __clang_hip_math.h.

References __y.

◆ __finite()

__DEVICE__ __RETURN_TYPE __finite ( double  __x)

Definition at line 838 of file __clang_hip_math.h.

◆ __finitef()

__DEVICE__ __RETURN_TYPE __finitef ( float  __x)

Definition at line 437 of file __clang_hip_math.h.

◆ __fma_rn()

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

Definition at line 1265 of file __clang_hip_math.h.

References __y.

◆ __fmaf_rn()

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

Definition at line 218 of file __clang_hip_math.h.

References __y.

◆ __fmul_rn()

__DEVICE__ float __fmul_rn ( float  __x,
float  __y 
)

Definition at line 234 of file __clang_hip_math.h.

References __y.

◆ __frcp_rn()

__DEVICE__ float __frcp_rn ( float  __x)

Definition at line 248 of file __clang_hip_math.h.

◆ __frsqrt_rn()

__DEVICE__ float __frsqrt_rn ( float  __x)

Definition at line 252 of file __clang_hip_math.h.

◆ __fsqrt_rn()

__DEVICE__ float __fsqrt_rn ( float  __x)

Definition at line 265 of file __clang_hip_math.h.

◆ __fsub_rn()

__DEVICE__ float __fsub_rn ( float  __x,
float  __y 
)

Definition at line 279 of file __clang_hip_math.h.

References __y.

◆ __isinf()

__DEVICE__ __RETURN_TYPE __isinf ( double  __x)

Definition at line 841 of file __clang_hip_math.h.

◆ __isinff()

__DEVICE__ __RETURN_TYPE __isinff ( float  __x)

Definition at line 440 of file __clang_hip_math.h.

◆ __isnan()

__DEVICE__ __RETURN_TYPE __isnan ( double  __x)

Definition at line 844 of file __clang_hip_math.h.

◆ __isnanf()

__DEVICE__ __RETURN_TYPE __isnanf ( float  __x)

Definition at line 443 of file __clang_hip_math.h.

◆ __log10f()

__DEVICE__ float __log10f ( float  __x)

Definition at line 283 of file __clang_hip_math.h.

◆ __log2f()

__DEVICE__ float __log2f ( float  __x)

Definition at line 286 of file __clang_hip_math.h.

Referenced by log2f().

◆ __logf()

__DEVICE__ float __logf ( float  __x)

Definition at line 289 of file __clang_hip_math.h.

Referenced by logf().

◆ __make_mantissa()

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

Definition at line 136 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 98 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 115 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 81 of file __clang_hip_math.h.

Referenced by __make_mantissa().

◆ __powf()

__DEVICE__ float __powf ( float  __x,
float  __y 
)

Definition at line 292 of file __clang_hip_math.h.

References __y.

◆ __saturatef()

__DEVICE__ float __saturatef ( float  __x)

Definition at line 295 of file __clang_hip_math.h.

◆ __signbit()

__DEVICE__ __RETURN_TYPE __signbit ( double  __x)

Definition at line 1053 of file __clang_hip_math.h.

◆ __signbitf()

__DEVICE__ __RETURN_TYPE __signbitf ( float  __x)

Definition at line 645 of file __clang_hip_math.h.

◆ __sincosf()

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

Definition at line 298 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 304 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 307 of file __clang_hip_math.h.

References __cosf(), and __sinf().

◆ acos()

__DEVICE__ double acos ( double  __x)

Definition at line 730 of file __clang_hip_math.h.

◆ acosf()

__DEVICE__ float acosf ( float  __x)

Definition at line 328 of file __clang_hip_math.h.

◆ acosh()

__DEVICE__ double acosh ( double  __x)

Definition at line 733 of file __clang_hip_math.h.

◆ acoshf()

__DEVICE__ float acoshf ( float  __x)

Definition at line 331 of file __clang_hip_math.h.

◆ asin()

__DEVICE__ double asin ( double  __x)

Definition at line 736 of file __clang_hip_math.h.

◆ asinf()

__DEVICE__ float asinf ( float  __x)

Definition at line 334 of file __clang_hip_math.h.

◆ asinh()

__DEVICE__ double asinh ( double  __x)

Definition at line 739 of file __clang_hip_math.h.

◆ asinhf()

__DEVICE__ float asinhf ( float  __x)

Definition at line 337 of file __clang_hip_math.h.

◆ atan()

__DEVICE__ double atan ( double  __x)

Definition at line 742 of file __clang_hip_math.h.

◆ atan2()

__DEVICE__ double atan2 ( double  __x,
double  __y 
)

Definition at line 745 of file __clang_hip_math.h.

References __y.

◆ atan2f()

__DEVICE__ float atan2f ( float  __x,
float  __y 
)

Definition at line 340 of file __clang_hip_math.h.

References __y.

◆ atanf()

__DEVICE__ float atanf ( float  __x)

Definition at line 343 of file __clang_hip_math.h.

◆ atanh()

__DEVICE__ double atanh ( double  __x)

Definition at line 748 of file __clang_hip_math.h.

◆ atanhf()

__DEVICE__ float atanhf ( float  __x)

Definition at line 346 of file __clang_hip_math.h.

◆ cbrt()

__DEVICE__ double cbrt ( double  __x)

Definition at line 751 of file __clang_hip_math.h.

◆ cbrtf()

__DEVICE__ float cbrtf ( float  __x)

Definition at line 349 of file __clang_hip_math.h.

◆ ceil()

__DEVICE__ double ceil ( double  __x)

Definition at line 754 of file __clang_hip_math.h.

◆ ceilf()

__DEVICE__ float ceilf ( float  __x)

Definition at line 352 of file __clang_hip_math.h.

◆ copysign()

__DEVICE__ double copysign ( double  __x,
double  __y 
)

Definition at line 757 of file __clang_hip_math.h.

References __y.

◆ copysignf()

__DEVICE__ float copysignf ( float  __x,
float  __y 
)

Definition at line 355 of file __clang_hip_math.h.

References __y.

◆ cos()

__DEVICE__ double cos ( double  __x)

Definition at line 762 of file __clang_hip_math.h.

References __ocml_cos_f64().

◆ cosf()

__DEVICE__ float cosf ( float  __x)

Definition at line 358 of file __clang_hip_math.h.

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

◆ cosh()

__DEVICE__ double cosh ( double  __x)

Definition at line 765 of file __clang_hip_math.h.

◆ coshf()

__DEVICE__ float coshf ( float  __x)

Definition at line 361 of file __clang_hip_math.h.

◆ cospi()

__DEVICE__ double cospi ( double  __x)

Definition at line 768 of file __clang_hip_math.h.

References __ocml_cospi_f64().

◆ cospif()

__DEVICE__ float cospif ( float  __x)

Definition at line 364 of file __clang_hip_math.h.

References __ocml_cospi_f32().

◆ cyl_bessel_i0()

__DEVICE__ double cyl_bessel_i0 ( double  __x)

Definition at line 771 of file __clang_hip_math.h.

References __ocml_i0_f64().

◆ cyl_bessel_i0f()

__DEVICE__ float cyl_bessel_i0f ( float  __x)

Definition at line 367 of file __clang_hip_math.h.

References __ocml_i0_f32().

◆ cyl_bessel_i1()

__DEVICE__ double cyl_bessel_i1 ( double  __x)

Definition at line 774 of file __clang_hip_math.h.

References __ocml_i1_f64().

◆ cyl_bessel_i1f()

__DEVICE__ float cyl_bessel_i1f ( float  __x)

Definition at line 370 of file __clang_hip_math.h.

References __ocml_i1_f32().

◆ erf()

__DEVICE__ double erf ( double  __x)

Definition at line 777 of file __clang_hip_math.h.

◆ erfc()

__DEVICE__ double erfc ( double  __x)

Definition at line 780 of file __clang_hip_math.h.

◆ erfcf()

__DEVICE__ float erfcf ( float  __x)

Definition at line 373 of file __clang_hip_math.h.

◆ erfcinv()

__DEVICE__ double erfcinv ( double  __x)

Definition at line 783 of file __clang_hip_math.h.

◆ erfcinvf()

__DEVICE__ float erfcinvf ( float  __x)

Definition at line 376 of file __clang_hip_math.h.

◆ erfcx()

__DEVICE__ double erfcx ( double  __x)

Definition at line 786 of file __clang_hip_math.h.

◆ erfcxf()

__DEVICE__ float erfcxf ( float  __x)

Definition at line 379 of file __clang_hip_math.h.

◆ erff()

__DEVICE__ float erff ( float  __x)

Definition at line 382 of file __clang_hip_math.h.

◆ erfinv()

__DEVICE__ double erfinv ( double  __x)

Definition at line 789 of file __clang_hip_math.h.

◆ erfinvf()

__DEVICE__ float erfinvf ( float  __x)

Definition at line 385 of file __clang_hip_math.h.

◆ exp()

__DEVICE__ double exp ( double  __x)

Definition at line 792 of file __clang_hip_math.h.

◆ exp10()

__DEVICE__ double exp10 ( double  __x)

Definition at line 795 of file __clang_hip_math.h.

◆ exp10f()

__DEVICE__ float exp10f ( float  __x)

Definition at line 388 of file __clang_hip_math.h.

◆ exp2()

__DEVICE__ double exp2 ( double  __x)

Definition at line 798 of file __clang_hip_math.h.

◆ exp2f()

__DEVICE__ float exp2f ( float  __x)

Definition at line 391 of file __clang_hip_math.h.

◆ expf()

__DEVICE__ float expf ( float  __x)

Definition at line 394 of file __clang_hip_math.h.

◆ expm1()

__DEVICE__ double expm1 ( double  __x)

Definition at line 801 of file __clang_hip_math.h.

◆ expm1f()

__DEVICE__ float expm1f ( float  __x)

Definition at line 397 of file __clang_hip_math.h.

◆ fabs()

__DEVICE__ double fabs ( double  __x)

Definition at line 804 of file __clang_hip_math.h.

◆ fabsf()

__DEVICE__ float fabsf ( float  __x)

Definition at line 400 of file __clang_hip_math.h.

◆ fdim()

__DEVICE__ double fdim ( double  __x,
double  __y 
)

Definition at line 807 of file __clang_hip_math.h.

References __y.

◆ fdimf()

__DEVICE__ float fdimf ( float  __x,
float  __y 
)

Definition at line 403 of file __clang_hip_math.h.

References __y.

◆ fdividef()

__DEVICE__ float fdividef ( float  __x,
float  __y 
)

Definition at line 406 of file __clang_hip_math.h.

References __y.

◆ floor()

__DEVICE__ double floor ( double  __x)

Definition at line 810 of file __clang_hip_math.h.

◆ floorf()

__DEVICE__ float floorf ( float  __x)

Definition at line 409 of file __clang_hip_math.h.

◆ fma()

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

Definition at line 813 of file __clang_hip_math.h.

References __y.

◆ fmaf()

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

Definition at line 412 of file __clang_hip_math.h.

References __y.

◆ fmax()

__DEVICE__ double fmax ( double  __x,
double  __y 
)

Definition at line 818 of file __clang_hip_math.h.

References __y.

◆ fmaxf()

__DEVICE__ float fmaxf ( float  __x,
float  __y 
)

Definition at line 417 of file __clang_hip_math.h.

References __y.

◆ fmin()

__DEVICE__ double fmin ( double  __x,
double  __y 
)

Definition at line 821 of file __clang_hip_math.h.

References __y.

◆ fminf()

__DEVICE__ float fminf ( float  __x,
float  __y 
)

Definition at line 420 of file __clang_hip_math.h.

References __y.

◆ fmod()

__DEVICE__ double fmod ( double  __x,
double  __y 
)

Definition at line 824 of file __clang_hip_math.h.

References __y.

◆ fmodf()

__DEVICE__ float fmodf ( float  __x,
float  __y 
)

Definition at line 423 of file __clang_hip_math.h.

References __y.

◆ frexp()

__DEVICE__ double frexp ( double  __x,
int __nptr 
)

Definition at line 827 of file __clang_hip_math.h.

◆ frexpf()

__DEVICE__ float frexpf ( float  __x,
int __nptr 
)

Definition at line 426 of file __clang_hip_math.h.

◆ hypot()

__DEVICE__ double hypot ( double  __x,
double  __y 
)

Definition at line 832 of file __clang_hip_math.h.

References __y.

◆ hypotf()

__DEVICE__ float hypotf ( float  __x,
float  __y 
)

Definition at line 431 of file __clang_hip_math.h.

References __y.

◆ ilogb()

__DEVICE__ int ilogb ( double  __x)

Definition at line 835 of file __clang_hip_math.h.

◆ ilogbf()

__DEVICE__ int ilogbf ( float  __x)

Definition at line 434 of file __clang_hip_math.h.

◆ j0()

__DEVICE__ double j0 ( double  __x)

Definition at line 847 of file __clang_hip_math.h.

References __ocml_j0_f64().

Referenced by jn().

◆ j0f()

__DEVICE__ float j0f ( float  __x)

Definition at line 446 of file __clang_hip_math.h.

References __ocml_j0_f32().

Referenced by jnf().

◆ j1()

__DEVICE__ double j1 ( double  __x)

Definition at line 850 of file __clang_hip_math.h.

References __ocml_j1_f64().

Referenced by jn().

◆ j1f()

__DEVICE__ float j1f ( float  __x)

Definition at line 449 of file __clang_hip_math.h.

References __ocml_j1_f32().

Referenced by jnf().

◆ jn()

__DEVICE__ double jn ( int  __n,
double  __x 
)

Definition at line 853 of file __clang_hip_math.h.

References j0(), and j1().

◆ jnf()

__DEVICE__ float jnf ( int  __n,
float  __x 
)

Definition at line 452 of file __clang_hip_math.h.

References j0f(), and j1f().

◆ ldexp()

__DEVICE__ double ldexp ( double  __x,
int  __e 
)

Definition at line 874 of file __clang_hip_math.h.

◆ ldexpf()

__DEVICE__ float ldexpf ( float  __x,
int  __e 
)

Definition at line 473 of file __clang_hip_math.h.

◆ lgamma()

__DEVICE__ double lgamma ( double  __x)

Definition at line 877 of file __clang_hip_math.h.

References __ocml_lgamma_f64().

◆ lgammaf()

__DEVICE__ float lgammaf ( float  __x)

Definition at line 476 of file __clang_hip_math.h.

References __ocml_lgamma_f32().

◆ llrint()

__DEVICE__ long long int llrint ( double  __x)

Definition at line 880 of file __clang_hip_math.h.

◆ llrintf()

__DEVICE__ long long int llrintf ( float  __x)

Definition at line 479 of file __clang_hip_math.h.

◆ llround()

__DEVICE__ long long int llround ( double  __x)

Definition at line 883 of file __clang_hip_math.h.

◆ llroundf()

__DEVICE__ long long int llroundf ( float  __x)

Definition at line 482 of file __clang_hip_math.h.

◆ log()

__DEVICE__ double log ( double  __x)

Definition at line 886 of file __clang_hip_math.h.

◆ log10()

__DEVICE__ double log10 ( double  __x)

Definition at line 889 of file __clang_hip_math.h.

◆ log10f()

__DEVICE__ float log10f ( float  __x)

Definition at line 485 of file __clang_hip_math.h.

◆ log1p()

__DEVICE__ double log1p ( double  __x)

Definition at line 892 of file __clang_hip_math.h.

◆ log1pf()

__DEVICE__ float log1pf ( float  __x)

Definition at line 488 of file __clang_hip_math.h.

◆ log2()

__DEVICE__ double log2 ( double  __x)

Definition at line 895 of file __clang_hip_math.h.

◆ log2f()

__DEVICE__ float log2f ( float  __x)

Definition at line 491 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __log2f().

◆ logb()

__DEVICE__ double logb ( double  __x)

Definition at line 898 of file __clang_hip_math.h.

◆ logbf()

__DEVICE__ float logbf ( float  __x)

Definition at line 494 of file __clang_hip_math.h.

◆ logf()

__DEVICE__ float logf ( float  __x)

Definition at line 497 of file __clang_hip_math.h.

References __FAST_OR_SLOW, and __logf().

◆ lrint()

__DEVICE__ long int lrint ( double  __x)

Definition at line 901 of file __clang_hip_math.h.

◆ lrintf()

__DEVICE__ long int lrintf ( float  __x)

Definition at line 500 of file __clang_hip_math.h.

◆ lround()

__DEVICE__ long int lround ( double  __x)

Definition at line 904 of file __clang_hip_math.h.

◆ lroundf()

__DEVICE__ long int lroundf ( float  __x)

Definition at line 503 of file __clang_hip_math.h.

◆ modf()

__DEVICE__ double modf ( double  __x,
double __iptr 
)

Definition at line 907 of file __clang_hip_math.h.

References __ocml_modf_f64().

◆ modff()

__DEVICE__ float modff ( float  __x,
float __iptr 
)

Definition at line 506 of file __clang_hip_math.h.

References __ocml_modf_f32().

◆ nan()

__DEVICE__ double nan ( const char *  __tagp)

Definition at line 920 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 518 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 948 of file __clang_hip_math.h.

◆ nearbyintf()

__DEVICE__ float nearbyintf ( float  __x)

Definition at line 539 of file __clang_hip_math.h.

◆ nextafter()

__DEVICE__ double nextafter ( double  __x,
double  __y 
)

Definition at line 951 of file __clang_hip_math.h.

References __y.

◆ nextafterf()

__DEVICE__ float nextafterf ( float  __x,
float  __y 
)

Definition at line 542 of file __clang_hip_math.h.

References __y.

◆ norm()

__DEVICE__ double norm ( int  __dim,
const double __a 
)

Definition at line 956 of file __clang_hip_math.h.

References __a.

◆ norm3d()

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

Definition at line 968 of file __clang_hip_math.h.

References __y.

◆ norm3df()

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

Definition at line 547 of file __clang_hip_math.h.

References __y.

◆ norm4d()

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

Definition at line 973 of file __clang_hip_math.h.

References __y.

◆ norm4df()

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

Definition at line 552 of file __clang_hip_math.h.

References __y.

◆ normcdf()

__DEVICE__ double normcdf ( double  __x)

Definition at line 978 of file __clang_hip_math.h.

◆ normcdff()

__DEVICE__ float normcdff ( float  __x)

Definition at line 557 of file __clang_hip_math.h.

◆ normcdfinv()

__DEVICE__ double normcdfinv ( double  __x)

Definition at line 981 of file __clang_hip_math.h.

◆ normcdfinvf()

__DEVICE__ float normcdfinvf ( float  __x)

Definition at line 560 of file __clang_hip_math.h.

◆ normf()

__DEVICE__ float normf ( int  __dim,
const float __a 
)

Definition at line 563 of file __clang_hip_math.h.

References __a.

◆ pow()

__DEVICE__ double pow ( double  __x,
double  __y 
)

Definition at line 984 of file __clang_hip_math.h.

References __y.

◆ powf()

__DEVICE__ float powf ( float  __x,
float  __y 
)

Definition at line 575 of file __clang_hip_math.h.

References __y.

◆ powi()

__DEVICE__ double powi ( double  __x,
int  __y 
)

Definition at line 987 of file __clang_hip_math.h.

References __y.

◆ powif()

__DEVICE__ float powif ( float  __x,
int  __y 
)

Definition at line 578 of file __clang_hip_math.h.

References __y.

◆ rcbrt()

__DEVICE__ double rcbrt ( double  __x)

Definition at line 990 of file __clang_hip_math.h.

◆ rcbrtf()

__DEVICE__ float rcbrtf ( float  __x)

Definition at line 581 of file __clang_hip_math.h.

◆ remainder()

__DEVICE__ double remainder ( double  __x,
double  __y 
)

Definition at line 993 of file __clang_hip_math.h.

References __y.

◆ remainderf()

__DEVICE__ float remainderf ( float  __x,
float  __y 
)

Definition at line 584 of file __clang_hip_math.h.

References __y.

◆ remquo()

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

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

References __ocml_remquo_f32(), and __y.

◆ rhypot()

__DEVICE__ double rhypot ( double  __x,
double  __y 
)

Definition at line 1011 of file __clang_hip_math.h.

References __y.

◆ rhypotf()

__DEVICE__ float rhypotf ( float  __x,
float  __y 
)

Definition at line 602 of file __clang_hip_math.h.

References __y.

◆ rint()

__DEVICE__ double rint ( double  __x)

Definition at line 1014 of file __clang_hip_math.h.

◆ rintf()

__DEVICE__ float rintf ( float  __x)

Definition at line 605 of file __clang_hip_math.h.

◆ rnorm()

__DEVICE__ double rnorm ( int  __dim,
const double __a 
)

Definition at line 1017 of file __clang_hip_math.h.

References __a.

◆ rnorm3d()

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

Definition at line 1029 of file __clang_hip_math.h.

References __y.

◆ rnorm3df()

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

Definition at line 608 of file __clang_hip_math.h.

References __y.

◆ rnorm4d()

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

Definition at line 1034 of file __clang_hip_math.h.

References __y.

◆ rnorm4df()

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

Definition at line 613 of file __clang_hip_math.h.

References __y.

◆ rnormf()

__DEVICE__ float rnormf ( int  __dim,
const float __a 
)

Definition at line 618 of file __clang_hip_math.h.

References __a.

◆ round()

__DEVICE__ double round ( double  __x)

Definition at line 1039 of file __clang_hip_math.h.

◆ roundf()

__DEVICE__ float roundf ( float  __x)

Definition at line 630 of file __clang_hip_math.h.

◆ rsqrt()

__DEVICE__ double rsqrt ( double  __x)

Definition at line 1042 of file __clang_hip_math.h.

◆ rsqrtf()

__DEVICE__ float rsqrtf ( float  __x)

Definition at line 633 of file __clang_hip_math.h.

◆ scalbln()

__DEVICE__ double scalbln ( double  __x,
long int  __n 
)

Definition at line 1045 of file __clang_hip_math.h.

References INT_MAX.

◆ scalblnf()

__DEVICE__ float scalblnf ( float  __x,
long int  __n 
)

Definition at line 636 of file __clang_hip_math.h.

References INT_MAX.

◆ scalbn()

__DEVICE__ double scalbn ( double  __x,
int  __n 
)

Definition at line 1050 of file __clang_hip_math.h.

◆ scalbnf()

__DEVICE__ float scalbnf ( float  __x,
int  __n 
)

Definition at line 642 of file __clang_hip_math.h.

◆ sin()

__DEVICE__ double sin ( double  __x)

Definition at line 1056 of file __clang_hip_math.h.

References __ocml_sin_f64().

◆ sincos()

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

Definition at line 1059 of file __clang_hip_math.h.

References __ocml_sincos_f64().

◆ sincosf()

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

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

References __ocml_sincospi_f64().

◆ sincospif()

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

Definition at line 663 of file __clang_hip_math.h.

References __ocml_sincospi_f32().

◆ sinf()

__DEVICE__ float sinf ( float  __x)

Definition at line 674 of file __clang_hip_math.h.

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

◆ sinh()

__DEVICE__ double sinh ( double  __x)

Definition at line 1081 of file __clang_hip_math.h.

◆ sinhf()

__DEVICE__ float sinhf ( float  __x)

Definition at line 677 of file __clang_hip_math.h.

◆ sinpi()

__DEVICE__ double sinpi ( double  __x)

Definition at line 1084 of file __clang_hip_math.h.

References __ocml_sinpi_f64().

◆ sinpif()

__DEVICE__ float sinpif ( float  __x)

Definition at line 680 of file __clang_hip_math.h.

References __ocml_sinpi_f32().

◆ sqrt()

__DEVICE__ double sqrt ( double  __x)

Definition at line 1087 of file __clang_hip_math.h.

◆ sqrtf()

__DEVICE__ float sqrtf ( float  __x)

Definition at line 683 of file __clang_hip_math.h.

◆ tan()

__DEVICE__ double tan ( double  __x)

Definition at line 1090 of file __clang_hip_math.h.

References __ocml_tan_f64().

◆ tanf()

__DEVICE__ float tanf ( float  __x)

Definition at line 686 of file __clang_hip_math.h.

References __ocml_tan_f32().

◆ tanh()

__DEVICE__ double tanh ( double  __x)

Definition at line 1093 of file __clang_hip_math.h.

◆ tanhf()

__DEVICE__ float tanhf ( float  __x)

Definition at line 689 of file __clang_hip_math.h.

◆ tgamma()

__DEVICE__ double tgamma ( double  __x)

Definition at line 1096 of file __clang_hip_math.h.

References __ocml_tgamma_f64().

◆ tgammaf()

__DEVICE__ float tgammaf ( float  __x)

Definition at line 692 of file __clang_hip_math.h.

References __ocml_tgamma_f32().

◆ trunc()

__DEVICE__ double trunc ( double  __x)

Definition at line 1099 of file __clang_hip_math.h.

◆ truncf()

__DEVICE__ float truncf ( float  __x)

Definition at line 695 of file __clang_hip_math.h.

◆ y0()

__DEVICE__ double y0 ( double  __x)

Definition at line 1102 of file __clang_hip_math.h.

References __ocml_y0_f64().

Referenced by yn().

◆ y0f()

__DEVICE__ float y0f ( float  __x)

Definition at line 698 of file __clang_hip_math.h.

References __ocml_y0_f32().

Referenced by ynf().

◆ y1()

__DEVICE__ double y1 ( double  __x)

Definition at line 1105 of file __clang_hip_math.h.

References __ocml_y1_f64().

Referenced by yn().

◆ y1f()

__DEVICE__ float y1f ( float  __x)

Definition at line 701 of file __clang_hip_math.h.

References __ocml_y1_f32().

Referenced by ynf().

◆ yn()

__DEVICE__ double yn ( int  __n,
double  __x 
)

Definition at line 1108 of file __clang_hip_math.h.

References y0(), and y1().

◆ ynf()

__DEVICE__ float ynf ( int  __n,
float  __x 
)

Definition at line 704 of file __clang_hip_math.h.

References y0f(), and y1f().