Searched defs:fp32 (Results 1 – 1 of 1) sorted by relevance
69 struct fp32 { struct74 fp32() noexcept = default; argument75 explicit constexpr fp32(float f) : fp(f) { } in fp32() function76 void setS(unsigned int s) noexcept { bits = uint32_t((bits & 0x7FFFFFFF) | (s<<31)); } in setS()77 void setE(unsigned int s) noexcept { bits = uint32_t((bits & 0x807FFFFF) | (s<<23)); } in setE()78 void setM(unsigned int s) noexcept { bits = uint32_t((bits & 0xFF800000) | (s<< 0)); } in setM()79 constexpr unsigned int getS() const noexcept { return bits >> 31u; } in getS()80 constexpr unsigned int getE() const noexcept { return (bits >> 23u) & 0xFFu; } in getE()81 constexpr unsigned int getM() const noexcept { return bits & 0x7FFFFFu; } in getM()