cl::sycl::native Namespace Reference
Functions | |
template<typename F , COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
F | cos (F x) noexcept |
Compute cosine. More... | |
template<typename F , COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
F | divide (F x, F y) noexcept |
Compute x / y. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | exp (const F x) noexcept |
Compute the base-e exponential of x. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | exp2 (const F x) noexcept |
Compute the base-2 exponential of x. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | exp10 (const F x) noexcept |
Compute the base-10 exponential of x. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | log (const F x) noexcept |
Compute natural logarithm. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | log2 (const F x) noexcept |
Compute a base 2 logarithm. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | log10 (const F x) noexcept |
Compute a base 10 logarithm. More... | |
template<typename F , COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
F | powr (F x, F y) noexcept |
Compute x to the power y, where x >= 0. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | recip (const F x) noexcept |
Compute reciprocal. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | rsqrt (const F x) noexcept |
Compute inverse square root. More... | |
template<typename F , COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
F | sin (F x) noexcept |
Compute sine. More... | |
template<typename F , typename return_t = detail::collapse_swizzled_vec_t<F>, COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
return_t | sqrt (const F x) noexcept |
Compute square root. More... | |
template<typename F , COMPUTECPP_REQUIRES(detail::builtin::is_genfloatf< F >::value) > | |
F | tan (F x) noexcept |
Compute tangent. More... | |
Function Documentation
◆ cos()
|
noexcept |
Compute cosine.
x must be in the range -216 to +216.
- Template Parameters
-
F must model genfloatf.
- Precondition
- -216 <= x <= 216.
Definition at line 40 of file math_fp_native.h.
◆ divide()
|
noexcept |
Compute x / y.
- Template Parameters
-
F must model genfloatf.
Definition at line 50 of file math_fp_native.h.
◆ exp()
|
noexcept |
Compute the base-e exponential of x.
- Template Parameters
-
F must model genfloatf.
Definition at line 59 of file math_fp_native.h.
◆ exp10()
|
noexcept |
Compute the base-10 exponential of x.
- Template Parameters
-
F must model genfloatf.
Definition at line 77 of file math_fp_native.h.
◆ exp2()
|
noexcept |
Compute the base-2 exponential of x.
- Template Parameters
-
F must model genfloatf.
Definition at line 68 of file math_fp_native.h.
◆ log()
|
noexcept |
Compute natural logarithm.
- Template Parameters
-
F must model genfloatf.
Definition at line 86 of file math_fp_native.h.
◆ log10()
|
noexcept |
Compute a base 10 logarithm.
- Template Parameters
-
F must model genfloatf.
Definition at line 104 of file math_fp_native.h.
◆ log2()
|
noexcept |
Compute a base 2 logarithm.
- Template Parameters
-
F must model genfloatf.
Definition at line 95 of file math_fp_native.h.
◆ powr()
|
noexcept |
Compute x to the power y, where x >= 0.
- Template Parameters
-
F must model genfloatf.
- Precondition
- x >= 0.
Definition at line 114 of file math_fp_native.h.
◆ recip()
|
noexcept |
Compute reciprocal.
- Template Parameters
-
F must model genfloatf.
Definition at line 124 of file math_fp_native.h.
◆ rsqrt()
|
noexcept |
Compute inverse square root.
- Template Parameters
-
F must model genfloatf.
Definition at line 133 of file math_fp_native.h.
◆ sin()
|
noexcept |
Compute sine.
x must be in the range -216 to +216.
- Template Parameters
-
F must model genfloatf.
- Precondition
- -216 <= x <= 216.
Definition at line 145 of file math_fp_native.h.
◆ sqrt()
|
noexcept |
Compute square root.
- Template Parameters
-
F must model genfloatf.
Definition at line 155 of file math_fp_native.h.
◆ tan()
|
noexcept |
Compute tangent.
x must be in the range -216 to +216.
- Template Parameters
-
F must model genfloatf.
- Precondition
- -216 <= x <= 216.
Definition at line 167 of file math_fp_native.h.