Qrack
9.13
General classical-emulating-quantum development framework
|
Class for 1.31 unsigned floating-point computation. More...
#include <half.hpp>
Public Member Functions | |
HALF_CONSTEXPR | f31 (uint32 mant, int e) |
Constructor. More... | |
f31 (unsigned int abs) | |
Constructor. More... | |
Public Attributes | |
uint32 | m |
mantissa as 1.31. More... | |
int | exp |
exponent. More... | |
Friends | |
f31 | operator+ (f31 a, f31 b) |
Addition operator. More... | |
f31 | operator- (f31 a, f31 b) |
Subtraction operator. More... | |
f31 | operator* (f31 a, f31 b) |
Multiplication operator. More... | |
f31 | operator/ (f31 a, f31 b) |
Division operator. More... | |
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.