DPC++ Runtime
Runtime libraries for oneAPI DPC++
half_type.hpp File Reference
#include <sycl/bit_cast.hpp>
#include <sycl/detail/export.hpp>
#include <sycl/detail/iostream_proxy.hpp>
#include <sycl/detail/vector_traits.hpp>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <limits>
#include <string_view>
#include <type_traits>
Include dependency graph for half_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sycl::_V1::detail::half_impl::RawHostHalfToken
 
class  sycl::_V1::detail::half_impl::half
 
struct  std::hash< sycl::half >
 
struct  std::numeric_limits< sycl::half >
 

Namespaces

 sycl
 
 sycl::_V1
 
 sycl::_V1::detail
 
 sycl::_V1::detail::half_impl
 
 sycl::_V1::ext
 
 sycl::_V1::ext::intel
 
 sycl::_V1::ext::intel::esimd
 
 sycl::_V1::ext::intel::esimd::detail
 
 std
 

Macros

#define __builtin_expect(a, b)   (a)
 
#define __SYCL_CONSTEXPR_HALF
 
#define OP(op, op_eq)
 
#define OP(op)
 

Typedefs

using sycl::_V1::detail::half_impl::StorageT = uint16_t
 
using sycl::_V1::detail::half_impl::BIsRepresentationT = half
 
using sycl::_V1::detail::half_impl::VecElemT = half
 

Functions

__SYCL_CONSTEXPR_HALF uint16_t sycl::_V1::detail::float2Half (const float &Val)
 
__SYCL_CONSTEXPR_HALF float sycl::_V1::detail::half2Float (const uint16_t &Val)
 
constexpr half sycl::_V1::detail::half_impl::CreateHostHalfRaw (uint16_t X)
 
template<typename T >
sycl::_V1::detail::cast_if_host_half (T val)
 
float sycl::_V1::detail::cast_if_host_half (half_impl::half val)
 

Macro Definition Documentation

◆ __builtin_expect

#define __builtin_expect (   a,
 
)    (a)

Definition at line 28 of file half_type.hpp.

◆ __SYCL_CONSTEXPR_HALF

#define __SYCL_CONSTEXPR_HALF

Definition at line 39 of file half_type.hpp.

◆ OP [1/2]

#define OP (   op)

Definition at line 393 of file half_type.hpp.

◆ OP [2/2]

#define OP (   op,
  op_eq 
)

Definition at line 393 of file half_type.hpp.