Showing content from https://clang.llvm.org/doxygen/____clang__cuda__cmath_8h.html below:
clang: lib/Headers/__clang_cuda_cmath.h File Reference
#include <limits>
Go to the source code of this file.
__DEVICE__ long long abs (long long __n) __DEVICE__ long abs (long __n) __DEVICE__ float abs (float __x) __DEVICE__ double abs (double __x) __DEVICE__ float acos (float __x) Arc cosine function.
__DEVICE__ float asin (float __x) Arc sine function.
__DEVICE__ float atan (float __x) Arc tangent function.
__DEVICE__ float atan2 (float __x, float __y) Arc tangent of y / x.
__DEVICE__ float ceil (float __x) Round to integral value using the round to positive infinity rounding mode.
__DEVICE__ float cos (float __x) Compute cosine.
__DEVICE__ float cosh (float __x) Compute hyperbolic cosine.
__DEVICE__ float exp (float __x) Compute the base e exponential function of x.
__DEVICE__ float fabs (float __x) Compute absolute value of a floating-point number.
__DEVICE__ float floor (float __x) Round to integral value using the round to -ve infinity rounding mode.
__DEVICE__ float fmod (float __x, float __y) Modulus.
__DEVICE__ int fpclassify (float __x) __DEVICE__ int fpclassify (double __x) __DEVICE__ float frexp (float __arg, int *__exp) __DEVICE__ bool isinf (float __x) Test for infinity value (+ve or -ve) .
__DEVICE__ bool isinf (double __x) __DEVICE__ bool isfinite (float __x) Test for finite value.
__DEVICE__ bool isfinite (double __x) __DEVICE__ bool isnan (float __x) Test for a NaN.
__DEVICE__ bool isnan (double __x) __DEVICE__ bool isgreater (float __x, float __y) Returns the component-wise compare of x > y.
__DEVICE__ bool isgreater (double __x, double __y) __DEVICE__ bool isgreaterequal (float __x, float __y) Returns the component-wise compare of x >= y.
__DEVICE__ bool isgreaterequal (double __x, double __y) __DEVICE__ bool isless (float __x, float __y) Returns the component-wise compare of x < y.
__DEVICE__ bool isless (double __x, double __y) __DEVICE__ bool islessequal (float __x, float __y) Returns the component-wise compare of x <= y.
__DEVICE__ bool islessequal (double __x, double __y) __DEVICE__ bool islessgreater (float __x, float __y) Returns the component-wise compare of (x < y) || (x > y) .
__DEVICE__ bool islessgreater (double __x, double __y) __DEVICE__ bool isnormal (float __x) Test for a normal value.
__DEVICE__ bool isnormal (double __x) __DEVICE__ bool isunordered (float __x, float __y) Test if arguments are unordered.
__DEVICE__ bool isunordered (double __x, double __y) __DEVICE__ float ldexp (float __arg, int __exp) Multiply x by 2 to the power n.
__DEVICE__ float log (float __x) Compute natural logarithm.
__DEVICE__ float log10 (float __x) Compute a base 10 logarithm.
__DEVICE__ float modf (float __x, float *__iptr) __DEVICE__ float pow (float __base, float __exp) Compute x to the power y.
__DEVICE__ float pow (float __base, int __iexp) __DEVICE__ double pow (double __base, int __iexp) __DEVICE__ bool signbit (float __x) Test for sign bit.
__DEVICE__ bool signbit (double __x) __DEVICE__ float sin (float __x) Compute sine.
__DEVICE__ float sinh (float __x) Compute hyperbolic sine.
__DEVICE__ float sqrt (float __x) Compute square root.
__DEVICE__ float tan (float __x) Compute tangent.
__DEVICE__ float tanh (float __x) Compute hyperbolic tangent.
__CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, atan2) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, copysign) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, fdim) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, fmax) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, fmin) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, fmod) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, hypot) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, isgreater) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, isgreaterequal) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (bool, isinf) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, isless) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, islessequal) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, islessgreater) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (bool, isnan) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (bool, isunordered) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (double, nearbyint) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, nextafter) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, pow) __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 (double, remainder) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (double, rint) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (double, round) __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 (double, trunc) template<typename __T1 , typename __T2 , typename __T3 > __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) template<typename __T > __DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type frexp (__T __x, int *__exp) template<typename __T > __DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type ldexp (__T __x, int __exp) template<typename __T1 , typename __T2 > __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) template<typename __T > __DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type scalbln (__T __x, long __exp) template<typename __T > __DEVICE__ __clang_cuda_enable_if< std::numeric_limits< __T >::is_integer, double >::type scalbn (__T __x, int __exp) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 #define __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 ( __retty, __fn ) Value:
template <typename __T> \
__DEVICE__ \
__retty>::type \
__fn(__T __x) { \
return ::__fn((double)__x); \
}
Definition at line 217 of file __clang_cuda_cmath.h.
◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 #define __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( __retty, __fn ) Value:
template <typename __T1, typename __T2> \
std::numeric_limits<__T1>::is_specialized && \
std::numeric_limits<__T2>::is_specialized, \
__retty>::type \
__fn(__T1 __x, __T2
__y
) { \
return
__fn((
double
)__x, (
double
)
__y
); \
}
static __inline__ uint32_t uint32_t __y
Definition at line 231 of file __clang_cuda_cmath.h.
◆ __DEVICE__ ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [1/6] __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 ( bool , isinf ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [2/6] __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 ( bool , isnan ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [3/6] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [4/6] __CUDA_CLANG_FN_INTEGER_OVERLOAD_1 ( double , rint ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [5/6] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_1() [6/6] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [1/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [2/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [3/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( bool , isless ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [4/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [5/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [6/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [7/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [8/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [9/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( double , fdim ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [10/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( double , fmax ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [11/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( double , fmin ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [12/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( double , fmod ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [13/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [14/16] ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [15/16] __CUDA_CLANG_FN_INTEGER_OVERLOAD_2 ( double , pow ) ◆ __CUDA_CLANG_FN_INTEGER_OVERLOAD_2() [16/16] ◆ abs() [1/4] ◆ abs() [2/4] ◆ abs() [3/4] ◆ abs() [4/4] ◆ acos() ◆ asin() ◆ atan() ◆ atan2() ◆ ceil()
Round to integral value using the round to positive infinity rounding mode.
Definition at line 49 of file __clang_cuda_cmath.h.
◆ cos() ◆ cosh() ◆ exp() ◆ fabs() ◆ floor()
Round to integral value using the round to -ve infinity rounding mode.
Definition at line 54 of file __clang_cuda_cmath.h.
◆ fma()
template<typename __T1 , typename __T2 , typename __T3 >
__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 ) ◆ fmod() ◆ fpclassify() [1/2] ◆ fpclassify() [2/2] ◆ frexp() [1/2] ◆ frexp() [2/2] ◆ isfinite() [1/2] ◆ isfinite() [2/2] ◆ isgreater() [1/2] ◆ isgreater() [2/2] ◆ isgreaterequal() [1/2] ◆ isgreaterequal() [2/2] ◆ isinf() [1/2] ◆ isinf() [2/2] ◆ isless() [1/2] ◆ isless() [2/2] ◆ islessequal() [1/2] ◆ islessequal() [2/2] ◆ islessgreater() [1/2] ◆ islessgreater() [2/2] ◆ isnan() [1/2] ◆ isnan() [2/2] ◆ isnormal() [1/2] ◆ isnormal() [2/2] ◆ isunordered() [1/2] ◆ isunordered() [2/2]
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.
◆ ldexp() [1/2] ◆ ldexp() [2/2] ◆ log() ◆ log10() ◆ modf() ◆ pow() [1/3] ◆ pow() [2/3] ◆ pow() [3/3] ◆ remquo()
template<typename __T1 , typename __T2 >
◆ scalbln() ◆ scalbn() ◆ signbit() [1/2] ◆ signbit() [2/2]
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().
◆ sin() ◆ sinh() ◆ sqrt() ◆ tan() ◆ tanh()
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4