DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
20 namespace host_half_impl {
25 *
this =
operator float() +
static_cast<float>(RHS);
30 *
this =
operator float() -
static_cast<float>(RHS);
35 *
this =
operator float() *
static_cast<float>(RHS);
40 *
this =
operator float() /
static_cast<float>(RHS);
69 return static_cast<float>(LHS) <
static_cast<float>(RHS);
80 return static_cast<float>(LHS) ==
static_cast<float>(RHS);
half operator*(half LHS, const half &RHS)
half operator/(half LHS, const half &RHS)
half & operator/=(const half &rhs)
half operator+(half LHS, const half &RHS)
cl::sycl::detail::half_impl::half half
half & operator+=(const half &rhs)
half operator-(half LHS, const half &RHS)
half & operator-=(const half &rhs)
bool operator<(const half &LHS, const half &RHS)
We provide new interfaces for matrix muliply in this patch:
half & operator*=(const half &rhs)
bool operator==(const half &LHS, const half &RHS)
__SYCL_CONSTEXPR_HALF uint16_t float2Half(const float &Val)
__SYCL_CONSTEXPR_HALF float half2Float(const uint16_t &Val)
bool operator!=(const half &LHS, const half &RHS)
bool operator<=(const half &LHS, const half &RHS)
bool operator>=(const half &LHS, const half &RHS)
bool operator>(const half &LHS, const half &RHS)
#define __SYCL_INLINE_NAMESPACE(X)