#include <cstdint>
Go to the source code of this file.
◆ SkHalf
◆ SkFloatToHalf()
SkHalf SkFloatToHalf |
( |
float |
f | ) |
|
Definition at line 16 of file SkHalf.cpp.
16 {
19 } else {
21 }
22}
static constexpr uint16_t SK_HalfNaN
SIN Vec< N, uint16_t > to_half(const Vec< N, float > &x)
◆ SkHalfToFloat()
float SkHalfToFloat |
( |
SkHalf |
h | ) |
|
Definition at line 24 of file SkHalf.cpp.
24 {
26}
SIN Vec< N, float > from_half(const Vec< N, uint16_t > &x)
◆ SK_Half1
constexpr uint16_t SK_Half1 = 0x3C00 |
|
staticconstexpr |
◆ SK_HalfEpsilon
constexpr uint16_t SK_HalfEpsilon = 0x1400 |
|
staticconstexpr |
◆ SK_HalfInfinity
constexpr uint16_t SK_HalfInfinity = 0x7c00 |
|
staticconstexpr |
◆ SK_HalfMax
constexpr uint16_t SK_HalfMax = 0x7bff |
|
staticconstexpr |
◆ SK_HalfMin
constexpr uint16_t SK_HalfMin = 0x0400 |
|
staticconstexpr |
◆ SK_HalfNaN
constexpr uint16_t SK_HalfNaN = 0x7c01 |
|
staticconstexpr |