DPC++ Runtime
Runtime libraries for oneAPI DPC++
builtins_math.cpp File Reference
#include "builtins_helper.hpp"
#include <CL/sycl/detail/export.hpp>
#include <cmath>
Include dependency graph for builtins_math.cpp:

Go to the source code of this file.

Namespaces

 cl
 We provide new interfaces for matrix muliply in this patch:
 
 cl::__host_std
 

Macros

#define _USE_MATH_DEFINES
 

Functions

s::cl_float cl::__host_std::acos (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::acos (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::acos (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::acosh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::acosh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::acosh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::acospi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::acospi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::acospi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::asin (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::asin (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::asin (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::asinh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::asinh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::asinh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::asinpi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::asinpi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::asinpi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::atan (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::atan (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::atan (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::atan2 (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::atan2 (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::atan2 (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::atanh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::atanh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::atanh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::atanpi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::atanpi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::atanpi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::atan2pi (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::atan2pi (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::atan2pi (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::cbrt (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::cbrt (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::cbrt (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::ceil (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::ceil (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::ceil (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::copysign (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::copysign (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::copysign (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::cos (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::cos (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::cos (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::cosh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::cosh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::cosh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::cospi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::cospi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::cospi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::erfc (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::erfc (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::erfc (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::erf (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::erf (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::erf (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::exp (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::exp (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::exp (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::exp2 (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::exp2 (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::exp2 (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::exp10 (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::exp10 (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::exp10 (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::expm1 (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::expm1 (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::expm1 (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::fabs (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::fabs (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::fabs (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::fdim (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::fdim (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::fdim (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::floor (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::floor (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::floor (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::fma (s::cl_float a, s::cl_float b, s::cl_float c) __NOEXC
 
s::cl_double cl::__host_std::fma (s::cl_double a, s::cl_double b, s::cl_double c) __NOEXC
 
s::cl_half cl::__host_std::fma (s::cl_half a, s::cl_half b, s::cl_half c) __NOEXC
 
s::cl_float cl::__host_std::fmax (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::fmax (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::fmax (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::fmin (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::fmin (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::fmin (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::fmod (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::fmod (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::fmod (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::nextafter (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::nextafter (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::nextafter (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::fract (s::cl_float x, s::cl_float *iptr) __NOEXC
 
s::cl_double cl::__host_std::fract (s::cl_double x, s::cl_double *iptr) __NOEXC
 
s::cl_half cl::__host_std::fract (s::cl_half x, s::cl_half *iptr) __NOEXC
 
s::cl_float cl::__host_std::frexp (s::cl_float x, s::cl_int *exp) __NOEXC
 
s::cl_double cl::__host_std::frexp (s::cl_double x, s::cl_int *exp) __NOEXC
 
s::cl_half cl::__host_std::frexp (s::cl_half x, s::cl_int *exp) __NOEXC
 
s::cl_float cl::__host_std::hypot (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::hypot (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::hypot (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_int cl::__host_std::ilogb (s::cl_float x) __NOEXC
 
s::cl_int cl::__host_std::ilogb (s::cl_double x) __NOEXC
 
s::cl_int cl::__host_std::ilogb (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::ldexp (s::cl_float x, s::cl_int k) __NOEXC
 
s::cl_double cl::__host_std::ldexp (s::cl_double x, s::cl_int k) __NOEXC
 
s::cl_half cl::__host_std::ldexp (s::cl_half x, s::cl_int k) __NOEXC
 
s::cl_float cl::__host_std::lgamma (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::lgamma (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::lgamma (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::lgamma_r (s::cl_float x, s::cl_int *signp) __NOEXC
 
s::cl_double cl::__host_std::lgamma_r (s::cl_double x, s::cl_int *signp) __NOEXC
 
s::cl_half cl::__host_std::lgamma_r (s::cl_half x, s::cl_int *signp) __NOEXC
 
s::cl_float cl::__host_std::log (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::log (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::log (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::log2 (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::log2 (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::log2 (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::log10 (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::log10 (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::log10 (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::log1p (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::log1p (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::log1p (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::logb (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::logb (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::logb (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::mad (s::cl_float a, s::cl_float b, s::cl_float c) __NOEXC
 
s::cl_double cl::__host_std::mad (s::cl_double a, s::cl_double b, s::cl_double c) __NOEXC
 
s::cl_half cl::__host_std::mad (s::cl_half a, s::cl_half b, s::cl_half c) __NOEXC
 
s::cl_float cl::__host_std::maxmag (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::maxmag (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::maxmag (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::minmag (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::minmag (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::minmag (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::modf (s::cl_float x, s::cl_float *iptr) __NOEXC
 
s::cl_double cl::__host_std::modf (s::cl_double x, s::cl_double *iptr) __NOEXC
 
s::cl_half cl::__host_std::modf (s::cl_half x, s::cl_half *iptr) __NOEXC
 
s::cl_float cl::__host_std::nan (s::cl_uint nancode) __NOEXC
 
s::cl_double cl::__host_std::nan (s::cl_ulong nancode) __NOEXC
 
s::cl_half cl::__host_std::nan (s::cl_ushort nancode) __NOEXC
 
s::cl_float cl::__host_std::pow (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::pow (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::pow (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::pown (s::cl_float x, s::cl_int y) __NOEXC
 
s::cl_double cl::__host_std::pown (s::cl_double x, s::cl_int y) __NOEXC
 
s::cl_half cl::__host_std::pown (s::cl_half x, s::cl_int y) __NOEXC
 
s::cl_float cl::__host_std::powr (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::powr (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::powr (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::remainder (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_double cl::__host_std::remainder (s::cl_double x, s::cl_double y) __NOEXC
 
s::cl_half cl::__host_std::remainder (s::cl_half x, s::cl_half y) __NOEXC
 
s::cl_float cl::__host_std::remquo (s::cl_float x, s::cl_float y, s::cl_int *quo) __NOEXC
 
s::cl_double cl::__host_std::remquo (s::cl_double x, s::cl_double y, s::cl_int *quo) __NOEXC
 
s::cl_half cl::__host_std::remquo (s::cl_half x, s::cl_half y, s::cl_int *quo) __NOEXC
 
s::cl_float cl::__host_std::rint (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::rint (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::rint (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::rootn (s::cl_float x, s::cl_int y) __NOEXC
 
s::cl_double cl::__host_std::rootn (s::cl_double x, s::cl_int y) __NOEXC
 
s::cl_half cl::__host_std::rootn (s::cl_half x, s::cl_int y) __NOEXC
 
s::cl_float cl::__host_std::round (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::round (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::round (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::rsqrt (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::rsqrt (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::rsqrt (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::sin (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::sin (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::sin (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::sincos (s::cl_float x, s::cl_float *cosval) __NOEXC
 
s::cl_double cl::__host_std::sincos (s::cl_double x, s::cl_double *cosval) __NOEXC
 
s::cl_half cl::__host_std::sincos (s::cl_half x, s::cl_half *cosval) __NOEXC
 
s::cl_float cl::__host_std::sinh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::sinh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::sinh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::sinpi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::sinpi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::sinpi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::sqrt (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::sqrt (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::sqrt (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::tan (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::tan (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::tan (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::tanh (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::tanh (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::tanh (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::tanpi (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::tanpi (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::tanpi (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::tgamma (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::tgamma (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::tgamma (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::trunc (s::cl_float x) __NOEXC
 
s::cl_double cl::__host_std::trunc (s::cl_double x) __NOEXC
 
s::cl_half cl::__host_std::trunc (s::cl_half x) __NOEXC
 
s::cl_float cl::__host_std::native_cos (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_divide (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_float cl::__host_std::native_exp (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_exp2 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_exp10 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_log (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_log2 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_log10 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_powr (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_float cl::__host_std::native_recip (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_rsqrt (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_sin (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_sqrt (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::native_tan (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_cos (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_divide (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_float cl::__host_std::half_exp (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_exp2 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_exp10 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_log (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_log2 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_log10 (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_powr (s::cl_float x, s::cl_float y) __NOEXC
 
s::cl_float cl::__host_std::half_recip (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_rsqrt (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_sin (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_sqrt (s::cl_float x) __NOEXC
 
s::cl_float cl::__host_std::half_tan (s::cl_float x) __NOEXC
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 16 of file builtins_math.cpp.