32#ifndef __ARCH_AMDGPU_COMMON_DTYPE_FP8_E4M3_HH__
33#define __ARCH_AMDGPU_COMMON_DTYPE_FP8_E4M3_HH__
53 inf = (0x7f << zbits),
54 nan = (0xff << zbits),
67static_assert(
sizeof(fp8_e4m3_info) == 4);
83 return a.exp == 0xF &&
a.mant == 0x7;
88 return !(
a.exp == 0 &&
a.mant != 0);
93class numeric_limits<
gem5::AMDGPU::fp8_e4m3_info>
96 static constexpr bool has_quiet_NaN =
true;
99 assert(has_quiet_NaN);
105 static constexpr bool has_infinity =
false;
108 assert(has_infinity);
static gem5::AMDGPU::fp8_e4m3_info quiet_NaN()
static gem5::AMDGPU::fp8_e4m3_info infinity()
static gem5::AMDGPU::fp8_e4m3_info max()
constexpr T mbits(T val, unsigned first, unsigned last)
Mask off the given bits in place like bits() but without shifting.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Overload hash function for BasicBlockRange type.
constexpr bool isinf(gem5::AMDGPU::fp16_e5m10_info a)
constexpr bool isnan(gem5::AMDGPU::fp16_e5m10_info a)
constexpr bool isnormal(gem5::AMDGPU::fp16_e5m10_info a)