mxf4_utils.hpp Source File#
mxf4_utils.hpp
Go to the documentation of this file.
Definition library/utility/check_err.hpp:24
__host__ __device__ float convert_to_float(T data, int scale_exp)
Definition mxfp_utils.hpp:73
__host__ __device__ f4_t sat_convert_to_type_sr< f4_t >(float value, uint32_t seed)
Definition mxf4_utils.hpp:84
__host__ __device__ T convert_to_type_sr(float value, uint32_t seed)
Definition mxfp_utils.hpp:261
__host__ __device__ bool is_zero(e8m0_bexp_t const scale, T const data)
__host__ __device__ T convert_to_type(float value)
Definition mxfp_utils.hpp:102
__host__ __device__ bool is_nan< f4_t >(e8m0_bexp_t const scale, f4_t const dataBytes)
Definition mxf4_utils.hpp:13
__host__ __device__ bool is_zero< f4_t >(e8m0_bexp_t const scale, f4_t const data)
Definition mxf4_utils.hpp:30
__host__ __device__ bool is_nan(e8m0_bexp_t const scale, T const data)
__host__ __device__ float to_float< f4_t >(e8m0_bexp_t const scale, f4_t const data)
Definition mxf4_utils.hpp:40
__host__ __device__ float to_float(e8m0_bexp_t const scale, T const data)
__host__ __device__ bool is_inf< f4_t >(e8m0_bexp_t const scale, f4_t const data)
Definition mxf4_utils.hpp:22
__host__ __device__ constexpr int32_t get_exponent_value< e8m0_bexp_t >(e8m0_bexp_t x)
Definition utility/e8m0.hpp:74
__host__ __device__ f4_t sat_convert_to_type< f4_t >(float value)
Definition mxf4_utils.hpp:56
Definition numeric_limits.hpp:309
__host__ static __device__ constexpr T QuietNaN()
Definition numeric_limits.hpp:313
Definition numeric_utils.hpp:10
Unsigned representation of a conventional biased Float32 exponent.
Definition utility/e8m0.hpp:26
__host__ __device__ constexpr bool is_nan() const
Definition utility/e8m0.hpp:65
Definition mxfp_utils.hpp:14