DPC++ Runtime
Runtime libraries for oneAPI DPC++
half_precision_math_functions.cpp File Reference
#include <sycl/detail/builtins/builtins.hpp>
#include "host_helper_macros.hpp"
#include <cmath>
Include dependency graph for half_precision_math_functions.cpp:

Go to the source code of this file.

Namespaces

 sycl
 
 sycl::_V1
 
 sycl::_V1::half_precision
 

Macros

#define BUILTIN_HALF_CUSTOM(NUM_ARGS, NAME, IMPL)
 
#define BUILTIN_HALF(NUM_ARGS, NAME)    BUILTIN_HALF_CUSTOM(NUM_ARGS, NAME, std::NAME)
 

Functions

 sycl::_V1::half_precision::BUILTIN_HALF_CUSTOM (ONE_ARG, exp10, [](auto x) { return std::pow(10.0f, x);}) BUILTIN_HALF_CUSTOM(TWO_ARGS
 

Variables

 sycl::_V1::half_precision::powr
 
auto sycl::_V1::half_precision::x
 
auto auto sycl::_V1::half_precision::y
 

Macro Definition Documentation

◆ BUILTIN_HALF

#define BUILTIN_HALF (   NUM_ARGS,
  NAME 
)     BUILTIN_HALF_CUSTOM(NUM_ARGS, NAME, std::NAME)

Definition at line 22 of file half_precision_math_functions.cpp.

◆ BUILTIN_HALF_CUSTOM

#define BUILTIN_HALF_CUSTOM (   NUM_ARGS,
  NAME,
  IMPL 
)
Value:
HOST_IMPL(NAME, IMPL) \
EXPORT_SCALAR_AND_VEC_1_16_NS(NUM_ARGS, NAME, half_precision, float)
#define HOST_IMPL(NAME,...)

Definition at line 18 of file half_precision_math_functions.cpp.