DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::host_half_impl::half Class Reference

#include <CL/sycl/half_type.hpp>

Public Member Functions

 half ()=default
 
constexpr half (const half &)=default
 
constexpr half (half &&)=default
 
 half (const float &rhs)
 
halfoperator= (const half &rhs)=default
 
halfoperator+= (const half &rhs)
 
halfoperator-= (const half &rhs)
 
halfoperator*= (const half &rhs)
 
halfoperator/= (const half &rhs)
 
halfoperator++ ()
 
half operator++ (int)
 
halfoperator-- ()
 
half operator-- (int)
 
constexpr halfoperator- ()
 
 operator float () const
 
constexpr half (uint16_t x)
 

Friends

template<typename Key >
struct std::hash
 

Detailed Description

Definition at line 137 of file half_type.hpp.

Constructor & Destructor Documentation

◆ half() [1/5]

cl::sycl::detail::host_half_impl::half::half ( )
default

◆ half() [2/5]

constexpr cl::sycl::detail::host_half_impl::half::half ( const half )
constexprdefault

◆ half() [3/5]

constexpr cl::sycl::detail::host_half_impl::half::half ( half &&  )
constexprdefault

◆ half() [4/5]

cl::sycl::detail::host_half_impl::half::half ( const float &  rhs)

Definition at line 22 of file half_type.cpp.

◆ half() [5/5]

constexpr cl::sycl::detail::host_half_impl::half::half ( uint16_t  x)
inlineexplicitconstexpr

Definition at line 191 of file half_type.hpp.

Member Function Documentation

◆ operator float()

cl::sycl::detail::host_half_impl::half::operator float ( ) const

Definition at line 44 of file half_type.cpp.

References cl::sycl::detail::half2Float().

◆ operator*=()

half & cl::sycl::detail::host_half_impl::half::operator*= ( const half rhs)

Definition at line 34 of file half_type.cpp.

◆ operator++() [1/2]

half& cl::sycl::detail::host_half_impl::half::operator++ ( )
inline

Definition at line 157 of file half_type.hpp.

◆ operator++() [2/2]

half cl::sycl::detail::host_half_impl::half::operator++ ( int  )
inline

Definition at line 162 of file half_type.hpp.

◆ operator+=()

half & cl::sycl::detail::host_half_impl::half::operator+= ( const half rhs)

Definition at line 24 of file half_type.cpp.

◆ operator-()

constexpr half& cl::sycl::detail::host_half_impl::half::operator- ( )
inlineconstexpr

Definition at line 180 of file half_type.hpp.

◆ operator--() [1/2]

half& cl::sycl::detail::host_half_impl::half::operator-- ( )
inline

Definition at line 168 of file half_type.hpp.

◆ operator--() [2/2]

half cl::sycl::detail::host_half_impl::half::operator-- ( int  )
inline

Definition at line 173 of file half_type.hpp.

◆ operator-=()

half & cl::sycl::detail::host_half_impl::half::operator-= ( const half rhs)

Definition at line 29 of file half_type.cpp.

◆ operator/=()

half & cl::sycl::detail::host_half_impl::half::operator/= ( const half rhs)

Definition at line 39 of file half_type.cpp.

◆ operator=()

half& cl::sycl::detail::host_half_impl::half::operator= ( const half rhs)
default

Friends And Related Function Documentation

◆ std::hash

template<typename Key >
friend struct std::hash
friend

Definition at line 188 of file half_type.hpp.


The documentation for this class was generated from the following files: