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

class  sycl::_V1::detail::host_half_impl::half
 
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
 
 sycl::_V1::detail::host_half_impl
 
 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 = detail::host_half_impl::half
 
using sycl::_V1::detail::half_impl::BIsRepresentationT = half
 
using sycl::_V1::detail::half_impl::Vec2StorageT = std::array< StorageT, 2 >
 
using sycl::_V1::detail::half_impl::Vec3StorageT = std::array< StorageT, 3 >
 
using sycl::_V1::detail::half_impl::Vec4StorageT = std::array< StorageT, 4 >
 
using sycl::_V1::detail::half_impl::Vec8StorageT = std::array< StorageT, 8 >
 
using sycl::_V1::detail::half_impl::Vec16StorageT = std::array< StorageT, 16 >
 

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)
 
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 449 of file half_type.hpp.

◆ OP [2/2]

#define OP (   op,
  op_eq 
)

Definition at line 449 of file half_type.hpp.