clang 20.0.0git
|
#include <limits>
Go to the source code of this file.
Classes | |
struct | __clang_cuda_enable_if< __B, __T > |
struct | __clang_cuda_enable_if< true, __T > |
Namespaces | |
namespace | std |
Macros | |
#define | __DEVICE__ static __device__ __inline__ __attribute__((always_inline)) |
#define | __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(__retty, __fn) |
#define | __CUDA_CLANG_FN_INTEGER_OVERLOAD_2(__retty, __fn) |
#define __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 | ( | __retty, | |
__fn | |||
) |
Definition at line 217 of file __clang_cuda_cmath.h.
#define __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 | ( | __retty, | |
__fn | |||
) |
Definition at line 231 of file __clang_cuda_cmath.h.
#define __DEVICE__ static __device__ __inline__ __attribute__((always_inline)) |
Definition at line 38 of file __clang_cuda_cmath.h.
__CUDA_CLANG_FN_INTEGER_OVERLOAD_2 | ( | bool | , |
isgreaterequal | |||
) |
__CUDA_CLANG_FN_INTEGER_OVERLOAD_2 | ( | bool | , |
islessequal | |||
) |
__CUDA_CLANG_FN_INTEGER_OVERLOAD_2 | ( | bool | , |
islessgreater | |||
) |
__CUDA_CLANG_FN_INTEGER_OVERLOAD_2 | ( | bool | , |
isunordered | |||
) |
__DEVICE__ double abs | ( | double | __x | ) |
Definition at line 44 of file __clang_cuda_cmath.h.
__DEVICE__ float abs | ( | float | __x | ) |
Definition at line 43 of file __clang_cuda_cmath.h.
__DEVICE__ long abs | ( | long | __n | ) |
Definition at line 42 of file __clang_cuda_cmath.h.
__DEVICE__ long long abs | ( | long long | __n | ) |
Definition at line 41 of file __clang_cuda_cmath.h.
Referenced by clang::comments::CommandTraits::getTypoCorrectCommandInfo(), HandleComplexComplexDiv(), HelperSelectorsForTypoCorrection(), and clang::ento::shouldCompletelyUnroll().
__DEVICE__ float acos | ( | float | __x | ) |
Arc cosine function.
Definition at line 45 of file __clang_cuda_cmath.h.
__DEVICE__ float asin | ( | float | __x | ) |
Arc sine function.
Definition at line 46 of file __clang_cuda_cmath.h.
__DEVICE__ float atan | ( | float | __x | ) |
Arc tangent function.
Definition at line 47 of file __clang_cuda_cmath.h.
__DEVICE__ float atan2 | ( | float | __x, |
float | __y | ||
) |
__DEVICE__ float ceil | ( | float | __x | ) |
Round to integral value using the round to positive infinity rounding mode.
Definition at line 49 of file __clang_cuda_cmath.h.
__DEVICE__ float cos | ( | float | __x | ) |
Compute cosine.
Definition at line 50 of file __clang_cuda_cmath.h.
__DEVICE__ float cosh | ( | float | __x | ) |
Compute hyperbolic cosine.
Definition at line 51 of file __clang_cuda_cmath.h.
__DEVICE__ float exp | ( | float | __x | ) |
Compute the base e exponential function of x.
Definition at line 52 of file __clang_cuda_cmath.h.
__DEVICE__ float fabs | ( | float | __x | ) |
Compute absolute value of a floating-point number.
Definition at line 53 of file __clang_cuda_cmath.h.
__DEVICE__ float floor | ( | float | __x | ) |
Round to integral value using the round to -ve infinity rounding mode.
Definition at line 54 of file __clang_cuda_cmath.h.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T1 >::is_specialized &&std::numeric_limits< __T2 >::is_specialized &&std::numeric_limits< __T3 >::is_specialized, double >::type fma | ( | __T1 | __x, |
__T2 | __y, | ||
__T3 | __z | ||
) |
Definition at line 313 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ float fmod | ( | float | __x, |
float | __y | ||
) |
Modulus.
Returns x - y * trunc (x/y).
Definition at line 55 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ int fpclassify | ( | double | __x | ) |
Definition at line 60 of file __clang_cuda_cmath.h.
__DEVICE__ int fpclassify | ( | float | __x | ) |
Definition at line 56 of file __clang_cuda_cmath.h.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type frexp | ( | __T | __x, |
int * | __exp | ||
) |
Definition at line 320 of file __clang_cuda_cmath.h.
__DEVICE__ float frexp | ( | float | __arg, |
int * | __exp | ||
) |
Definition at line 64 of file __clang_cuda_cmath.h.
__DEVICE__ bool isfinite | ( | double | __x | ) |
Definition at line 107 of file __clang_cuda_cmath.h.
__DEVICE__ bool isfinite | ( | float | __x | ) |
Test for finite value.
Definition at line 103 of file __clang_cuda_cmath.h.
__DEVICE__ bool isgreater | ( | double | __x, |
double | __y | ||
) |
Definition at line 120 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isgreater | ( | float | __x, |
float | __y | ||
) |
Returns the component-wise compare of x > y.
Definition at line 117 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isgreaterequal | ( | double | __x, |
double | __y | ||
) |
Definition at line 126 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isgreaterequal | ( | float | __x, |
float | __y | ||
) |
Returns the component-wise compare of x >= y.
Definition at line 123 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isinf | ( | double | __x | ) |
Definition at line 102 of file __clang_cuda_cmath.h.
__DEVICE__ bool isinf | ( | float | __x | ) |
Test for infinity value (+ve or -ve) .
Definition at line 101 of file __clang_cuda_cmath.h.
__DEVICE__ bool isless | ( | double | __x, |
double | __y | ||
) |
Definition at line 132 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isless | ( | float | __x, |
float | __y | ||
) |
Returns the component-wise compare of x < y.
Definition at line 129 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool islessequal | ( | double | __x, |
double | __y | ||
) |
Definition at line 138 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool islessequal | ( | float | __x, |
float | __y | ||
) |
Returns the component-wise compare of x <= y.
Definition at line 135 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool islessgreater | ( | double | __x, |
double | __y | ||
) |
Definition at line 144 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool islessgreater | ( | float | __x, |
float | __y | ||
) |
Returns the component-wise compare of (x < y) || (x > y) .
Definition at line 141 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isnan | ( | double | __x | ) |
Definition at line 109 of file __clang_cuda_cmath.h.
__DEVICE__ bool isnan | ( | float | __x | ) |
__DEVICE__ bool isnormal | ( | double | __x | ) |
Definition at line 148 of file __clang_cuda_cmath.h.
__DEVICE__ bool isnormal | ( | float | __x | ) |
Test for a normal value.
Definition at line 147 of file __clang_cuda_cmath.h.
__DEVICE__ bool isunordered | ( | double | __x, |
double | __y | ||
) |
Definition at line 152 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ bool isunordered | ( | float | __x, |
float | __y | ||
) |
Test if arguments are unordered.
isunordered() takes arguments x and y, returning non-zero if x or y is NaN, and zero otherwise.
Definition at line 149 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type ldexp | ( | __T | __x, |
int | __exp | ||
) |
Definition at line 327 of file __clang_cuda_cmath.h.
__DEVICE__ float ldexp | ( | float | __arg, |
int | __exp | ||
) |
Multiply x by 2 to the power n.
Definition at line 155 of file __clang_cuda_cmath.h.
__DEVICE__ float log | ( | float | __x | ) |
Compute natural logarithm.
Definition at line 158 of file __clang_cuda_cmath.h.
__DEVICE__ float log10 | ( | float | __x | ) |
Compute a base 10 logarithm.
Definition at line 159 of file __clang_cuda_cmath.h.
__DEVICE__ float modf | ( | float | __x, |
float * | __iptr | ||
) |
Definition at line 160 of file __clang_cuda_cmath.h.
Referenced by mutateLongDoubleBuiltin().
__DEVICE__ double pow | ( | double | __base, |
int | __iexp | ||
) |
Definition at line 167 of file __clang_cuda_cmath.h.
__DEVICE__ float pow | ( | float | __base, |
float | __exp | ||
) |
Compute x to the power y.
Definition at line 161 of file __clang_cuda_cmath.h.
__DEVICE__ float pow | ( | float | __base, |
int | __iexp | ||
) |
Definition at line 164 of file __clang_cuda_cmath.h.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T1 >::is_specialized &&std::numeric_limits< __T2 >::is_specialized, double >::type remquo | ( | __T1 | __x, |
__T2 | __y, | ||
int * | __quo | ||
) |
Definition at line 336 of file __clang_cuda_cmath.h.
References __y.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type scalbln | ( | __T | __x, |
long | __exp | ||
) |
Definition at line 343 of file __clang_cuda_cmath.h.
__DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type scalbn | ( | __T | __x, |
int | __exp | ||
) |
Definition at line 350 of file __clang_cuda_cmath.h.
__DEVICE__ bool signbit | ( | double | __x | ) |
Definition at line 171 of file __clang_cuda_cmath.h.
__DEVICE__ bool signbit | ( | float | __x | ) |
Test for sign bit.
The scalar version of the function returns a 1 if the sign bit in the float is set else returns 0. The vector version of the function returns the following for each component in floatn: a -1 if the sign bit in the float is set else returns 0.
Definition at line 170 of file __clang_cuda_cmath.h.
Referenced by std::acos(), and std::polar().
__DEVICE__ float sin | ( | float | __x | ) |
Compute sine.
Definition at line 172 of file __clang_cuda_cmath.h.
__DEVICE__ float sinh | ( | float | __x | ) |
Compute hyperbolic sine.
Definition at line 173 of file __clang_cuda_cmath.h.
__DEVICE__ float sqrt | ( | float | __x | ) |
Compute square root.
Definition at line 174 of file __clang_cuda_cmath.h.
__DEVICE__ float tan | ( | float | __x | ) |
Compute tangent.
Definition at line 175 of file __clang_cuda_cmath.h.
__DEVICE__ float tanh | ( | float | __x | ) |
Compute hyperbolic tangent.
Definition at line 176 of file __clang_cuda_cmath.h.