Lines Matching refs:Float16
39 class Float16 {
41 Float16(uint16_t v) : val(v) {} in Float16() function
42 Float16() = default;
43 static bool isNan(const Float16& val) { in isNan()
47 static bool isInfinity(const Float16& val) { in isInfinity()
50 Float16(const Float16& other) { val = other.val; } in Float16() function
54 static Float16 max() { return Float16(0x7bff); } in max()
56 static Float16 lowest() { return Float16(0xfbff); } in lowest()
114 struct FloatProxyTraits<Float16> {
116 static bool isNan(Float16 f) { return Float16::isNan(f); }
118 static bool isInfinity(Float16 f) { return Float16::isInfinity(f); }
120 static Float16 max() { return Float16::max(); }
122 static Float16 lowest() { return Float16::lowest(); }
124 static Float16 getAsFloat(const uint_type& t) { return Float16(t); }
126 static uint_type getBitsFromFloat(const Float16& t) { return t.get_value(); }
264 struct HexFloatTraits<FloatProxy<Float16>> {
878 ParseNormalFloat<FloatProxy<Float16>, HexFloatTraits<FloatProxy<Float16>>>(
880 HexFloat<FloatProxy<Float16>, HexFloatTraits<FloatProxy<Float16>>>& value) {
891 if (Float16::isInfinity(value.value().getAsFloat())) {
892 value.set_value(value.isNegative() ? Float16::lowest() : Float16::max());
1141 inline std::ostream& operator<<<Float16>(std::ostream& os,
1142 const FloatProxy<Float16>& value) {
1143 os << HexFloat<FloatProxy<Float16>>(value);