DPC++ Runtime
Runtime libraries for oneAPI DPC++
half_type.hpp File Reference
#include <sycl/aspects.hpp>
#include <sycl/bit_cast.hpp>
#include <sycl/detail/defines.hpp>
#include <sycl/detail/export.hpp>
#include <sycl/detail/iostream_proxy.hpp>
#include <sycl/detail/vector_traits.hpp>
#include <functional>
#include <limits>
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.


class  sycl::_V1::detail::host_half_impl::half
struct  sycl::_V1::detail::half_impl::half_vec< NumElements >
class  sycl::_V1::detail::half_impl::half
struct  std::hash< sycl::half >
struct  std::numeric_limits< sycl::half >


 ---— Error handling, matching OpenCL plugin semantics.


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


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 = half_vec< 2 >
using sycl::_V1::detail::half_impl::Vec3StorageT = half_vec< 3 >
using sycl::_V1::detail::half_impl::Vec4StorageT = half_vec< 4 >
using sycl::_V1::detail::half_impl::Vec8StorageT = half_vec< 8 >
using sycl::_V1::detail::half_impl::Vec16StorageT = half_vec< 16 >


__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 >
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 22 of file half_type.hpp.



Definition at line 32 of file half_type.hpp.

◆ OP [1/2]

#define OP (   op)

Definition at line 459 of file half_type.hpp.

◆ OP [2/2]

#define OP (   op,

Definition at line 459 of file half_type.hpp.