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

Go to the source code of this file.

Namespaces

 sycl
 
 sycl::_V1
 
 sycl::_V1::native
 

Macros

#define BUILTIN_NATIVE_CUSTOM(NUM_ARGS, NAME, IMPL)
 
#define BUILTIN_NATIVE(NUM_ARGS, NAME)    BUILTIN_NATIVE_CUSTOM(NUM_ARGS, NAME, std::NAME)
 

Functions

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

Variables

 sycl::_V1::native::powr
 
auto sycl::_V1::native::x
 
auto auto sycl::_V1::native::y
 

Macro Definition Documentation

◆ BUILTIN_NATIVE

#define BUILTIN_NATIVE (   NUM_ARGS,
  NAME 
)     BUILTIN_NATIVE_CUSTOM(NUM_ARGS, NAME, std::NAME)

Definition at line 22 of file native_math_functions.cpp.

◆ BUILTIN_NATIVE_CUSTOM

#define BUILTIN_NATIVE_CUSTOM (   NUM_ARGS,
  NAME,
  IMPL 
)
Value:
HOST_IMPL(NAME, IMPL) \
EXPORT_SCALAR_AND_VEC_1_16_NS(NUM_ARGS, NAME, native, float)
#define HOST_IMPL(NAME,...)

Definition at line 18 of file native_math_functions.cpp.