![]() |
ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
|
Class for 1.31 unsigned floating-point computation. More...
#include <half.hpp>
Public Member Functions | |
| HALF_CONSTEXPR | f31 (uint32 mant, int e) |
| f31 (unsigned int abs) | |
Public Attributes | |
| uint32 | m |
| mantissa as 1.31. More... | |
| int | exp |
| exponent. More... | |
Friends | |
| f31 | operator+ (f31 a, f31 b) |
| f31 | operator- (f31 a, f31 b) |
| f31 | operator* (f31 a, f31 b) |
| f31 | operator/ (f31 a, f31 b) |
Class for 1.31 unsigned floating-point computation.
|
inline |
Constructor.
| mant | mantissa as 1.31 |
| e | exponent |
|
inline |
Constructor.
| abs | unsigned half-precision value |
Multiplication operator.
| a | first operand |
| b | second operand |
Addition operator.
| a | first operand |
| b | second operand |
Subtraction operator.
| a | first operand |
| b | second operand |
Division operator.
| a | first operand |
| b | second operand |
| int half_float::detail::f31::exp |
exponent.
| uint32 half_float::detail::f31::m |
mantissa as 1.31.