Lines Matching refs:f32
45 static u32 Float32ToBits32(f32 value) in Float32ToBits32()
57 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32()
59 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32()
95 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24()
97 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
100 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; }
103 operator f32() const { return m_Float32; } in f32() function
105 f32 operator +(f32 right) const { return this->m_Float32 + right; }
106 f32 operator -(f32 right) const { return this->m_Float32 - right; }
107 f32 operator *(f32 right) const { return this->m_Float32 * right; }
108 f32 operator /(f32 right) const { return this->m_Float32 / right; }
110 Float24& operator +=(f32 rhs) { this->m_Float32 += rhs; return *this; }
111 Float24& operator -=(f32 rhs) { this->m_Float32 -= rhs; return *this; }
112 Float24& operator *=(f32 rhs) { this->m_Float32 *= rhs; return *this; }
113 Float24& operator /=(f32 rhs) { this->m_Float32 /= rhs; return *this; }
115 bool operator ==(f32 rhs) const { return (rhs == this->m_Float32); }
116 bool operator !=(f32 rhs) const { return !(*this == rhs); }
125 static f32 Bits24ToFloat32(u32 bits24) in Bits24ToFloat32()
149 return *reinterpret_cast<f32*>(&bits32); in Bits24ToFloat32()
159 static u32 Float32ToBits24(f32 value) in Float32ToBits24()
201 f32 m_Float32;
252 /* implicit */ Float31( f32 value ) : m_Float32( value ) {} in Float31()
254 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
257 Float31& operator =(f32 value) { this->m_Float32 = value; return *this; }
260 operator f32() const { return m_Float32; } in f32() function
262 f32 operator +(f32 right) const { return this->m_Float32 + right; }
263 f32 operator -(f32 right) const { return this->m_Float32 - right; }
264 f32 operator *(f32 right) const { return this->m_Float32 * right; }
265 f32 operator /(f32 right) const { return this->m_Float32 / right; }
267 Float31& operator +=(f32 rhs) { this->m_Float32 += rhs; return *this; }
268 Float31& operator -=(f32 rhs) { this->m_Float32 -= rhs; return *this; }
269 Float31& operator *=(f32 rhs) { this->m_Float32 *= rhs; return *this; }
270 Float31& operator /=(f32 rhs) { this->m_Float32 /= rhs; return *this; }
272 bool operator ==(f32 rhs) const { return (rhs == this->m_Float32); }
273 bool operator !=(f32 rhs) const { return !(*this == rhs); }
282 static f32 Bits31ToFloat32(u32 bits31) in Bits31ToFloat32()
304 return *reinterpret_cast<f32*>(&bits32); in Bits31ToFloat32()
314 static u32 Float32ToBits31(f32 value) in Float32ToBits31()
354 f32 m_Float32;
406 /* implicit */ Float20( f32 value ) : m_Float32( value ) {} in Float20()
408 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
411 Float20& operator =(f32 value) { this->m_Float32 = value; return *this; }
414 operator f32() const { return m_Float32; } in f32() function
416 f32 operator +(f32 right) const { return this->m_Float32 + right; }
417 f32 operator -(f32 right) const { return this->m_Float32 - right; }
418 f32 operator *(f32 right) const { return this->m_Float32 * right; }
419 f32 operator /(f32 right) const { return this->m_Float32 / right; }
421 Float20& operator +=(f32 rhs) { this->m_Float32 += rhs; return *this; }
422 Float20& operator -=(f32 rhs) { this->m_Float32 -= rhs; return *this; }
423 Float20& operator *=(f32 rhs) { this->m_Float32 *= rhs; return *this; }
424 Float20& operator /=(f32 rhs) { this->m_Float32 /= rhs; return *this; }
426 bool operator ==(f32 rhs) const { return (rhs == this->m_Float32); }
427 bool operator !=(f32 rhs) const { return !(*this == rhs); }
436 static f32 Bits20ToFloat32(u32 bits20) in Bits20ToFloat32()
460 return *reinterpret_cast<f32*>(&bits32); in Bits20ToFloat32()
470 static u32 Float32ToBits20(f32 value) in Float32ToBits20()
512 f32 m_Float32;
564 /* implicit */ Float16( f32 value ) : m_Float32( value ) {} in Float16()
566 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
569 Float16& operator =(f32 value) { this->m_Float32 = value; return *this; }
572 operator f32() const { return m_Float32; } in f32() function
575 f32 operator +(f32 right) const { return this->m_Float32 + right; }
576 f32 operator -(f32 right) const { return this->m_Float32 - right; }
577 f32 operator *(f32 right) const { return this->m_Float32 * right; }
578 f32 operator /(f32 right) const { return this->m_Float32 / right; }
580 Float16& operator +=(f32 rhs) { this->m_Float32 += rhs; return *this; }
581 Float16& operator -=(f32 rhs) { this->m_Float32 -= rhs; return *this; }
582 Float16& operator *=(f32 rhs) { this->m_Float32 *= rhs; return *this; }
583 Float16& operator /=(f32 rhs) { this->m_Float32 /= rhs; return *this; }
585 bool operator ==(f32 rhs) const { return (rhs == this->m_Float32); }
586 bool operator !=(f32 rhs) const { return !(*this == rhs); }
595 static f32 Bits16ToFloat32(u32 bits16) in Bits16ToFloat32()
619 return *reinterpret_cast<f32*>(&bits32); in Bits16ToFloat32()
629 static u16 Float32ToBits16(f32 value) in Float32ToBits16()
671 f32 m_Float32;
721 explicit Fixed13( f32 fvalue ) in Fixed13()
727 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
737 static f32 Fixed13ToFloat32(u32 fixed13) in Fixed13ToFloat32()
739 f32 float32 = static_cast<f32>(fixed13); in Fixed13ToFloat32()
756 static u16 Float32ToFixed13(f32 value) in Float32ToFixed13()
758 f32 fixed = value; in Float32ToFixed13()
777 f32 m_Float32;
818 explicit Fixed11( f32 fvalue ) in Fixed11()
824 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value()
834 static f32 Fixed11ToFloat32(u32 fixed11) in Fixed11ToFloat32()
836 f32 float32 = static_cast<f32>(fixed11); in Fixed11ToFloat32()
847 static u16 Float32ToFixed11(f32 value) in Float32ToFixed11()
873 f32 m_Float32;