![]() |
Ark Server API (ASA) - Wiki
|
#include <FloatPacker.h>
Public Types | |
| enum | { NumOutputsBits = NumExponentBits + NumMantissaBits + 1 } |
| enum | { MantissaShift = FloatInfo::MantissaBits - NumMantissaBits } |
| enum | { ExponentBias = (1 << (NumExponentBits-1)) - 1 } |
| enum | { SignShift = NumExponentBits + NumMantissaBits } |
| enum | { MantissaMask = (1 << NumMantissaBits) - 1 } |
| enum | { ExponentMask = ((1 << NumExponentBits)-1) << NumMantissaBits } |
| enum | { SignMask = 1 << SignShift } |
| enum | { MinExponent = -ExponentBias - 1 } |
| enum | { MaxExponent = ExponentBias } |
| typedef FloatInfo::PackedType | PackedType |
| typedef FloatInfo::FloatType | FloatType |
Public Member Functions | |
| PackedType | Encode (FloatType Value) const |
| FloatType | Decode (PackedType Value) const |
Definition at line 45 of file FloatPacker.h.
| typedef FloatInfo::FloatType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::FloatType |
Definition at line 62 of file FloatPacker.h.
| typedef FloatInfo::PackedType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::PackedType |
Definition at line 61 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NumOutputsBits | |
Definition at line 48 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MantissaShift | |
Definition at line 50 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ExponentBias | |
Definition at line 51 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SignShift | |
Definition at line 52 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MantissaMask | |
Definition at line 54 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ExponentMask | |
Definition at line 55 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SignMask | |
Definition at line 56 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MinExponent | |
Definition at line 58 of file FloatPacker.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MaxExponent | |
Definition at line 59 of file FloatPacker.h.
|
inline |
Definition at line 110 of file FloatPacker.h.
|
inline |
Definition at line 64 of file FloatPacker.h.