DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::detail::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
 
__SYCL_CONSTEXPR_HALF half (const float &rhs)
 
constexpr halfoperator= (const half &rhs)=default
 
constexpr half (const detail::host_half_impl::half_v2 &rhs)
 
constexpr operator detail::host_half_impl::half_v2 () const
 
__SYCL_CONSTEXPR_HALF halfoperator+= (const half &rhs)
 
__SYCL_CONSTEXPR_HALF halfoperator-= (const half &rhs)
 
__SYCL_CONSTEXPR_HALF halfoperator*= (const half &rhs)
 
__SYCL_CONSTEXPR_HALF halfoperator/= (const half &rhs)
 
__SYCL_CONSTEXPR_HALF halfoperator++ ()
 
__SYCL_CONSTEXPR_HALF half operator++ (int)
 
__SYCL_CONSTEXPR_HALF halfoperator-- ()
 
__SYCL_CONSTEXPR_HALF half operator-- (int)
 
constexpr halfoperator- ()
 
constexpr half operator- () const
 
__SYCL_CONSTEXPR_HALF operator float () const
 

Friends

template<typename Key >
struct std::hash
 

Detailed Description

Definition at line 319 of file half_type.hpp.

Constructor & Destructor Documentation

◆ half() [1/5]

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

◆ half() [2/5]

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

◆ half() [3/5]

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

◆ half() [4/5]

__SYCL_CONSTEXPR_HALF cl::sycl::detail::half_impl::half::half ( const float &  rhs)
inline

Definition at line 325 of file half_type.hpp.

◆ half() [5/5]

constexpr cl::sycl::detail::half_impl::half::half ( const detail::host_half_impl::half_v2 rhs)
inlineconstexpr

Definition at line 332 of file half_type.hpp.

Member Function Documentation

◆ operator detail::host_half_impl::half_v2()

constexpr cl::sycl::detail::half_impl::half::operator detail::host_half_impl::half_v2 ( ) const
inlineconstexpr

Definition at line 333 of file half_type.hpp.

◆ operator float()

__SYCL_CONSTEXPR_HALF cl::sycl::detail::half_impl::half::operator float ( ) const
inline

Definition at line 388 of file half_type.hpp.

◆ operator*=()

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator*= ( const half rhs)
inline

Definition at line 347 of file half_type.hpp.

◆ operator++() [1/2]

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator++ ( )
inline

Definition at line 358 of file half_type.hpp.

◆ operator++() [2/2]

__SYCL_CONSTEXPR_HALF half cl::sycl::detail::half_impl::half::operator++ ( int  )
inline

Definition at line 363 of file half_type.hpp.

◆ operator+=()

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator+= ( const half rhs)
inline

Definition at line 337 of file half_type.hpp.

◆ operator-() [1/2]

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

Definition at line 379 of file half_type.hpp.

◆ operator-() [2/2]

constexpr half cl::sycl::detail::half_impl::half::operator- ( ) const
inlineconstexpr

Definition at line 383 of file half_type.hpp.

References cl::sycl::r.

◆ operator--() [1/2]

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator-- ( )
inline

Definition at line 369 of file half_type.hpp.

◆ operator--() [2/2]

__SYCL_CONSTEXPR_HALF half cl::sycl::detail::half_impl::half::operator-- ( int  )
inline

Definition at line 374 of file half_type.hpp.

◆ operator-=()

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator-= ( const half rhs)
inline

Definition at line 342 of file half_type.hpp.

◆ operator/=()

__SYCL_CONSTEXPR_HALF half& cl::sycl::detail::half_impl::half::operator/= ( const half rhs)
inline

Definition at line 352 of file half_type.hpp.

◆ operator=()

constexpr half& cl::sycl::detail::half_impl::half::operator= ( const half rhs)
constexprdefault

Friends And Related Function Documentation

◆ std::hash

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

Definition at line 392 of file half_type.hpp.


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