Home
last modified time | relevance | path

Searched defs:fp16 (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()