RMW desert 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
half_float::detail::f31 Struct Reference

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.
 
int exp
 exponent.
 

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)
 

Detailed Description

Class for 1.31 unsigned floating-point computation.

Constructor & Destructor Documentation

◆ f31() [1/2]

HALF_CONSTEXPR half_float::detail::f31::f31 ( uint32  mant,
int  e 
)
inline

Constructor.

Parameters
mantmantissa as 1.31
eexponent

◆ f31() [2/2]

half_float::detail::f31::f31 ( unsigned int  abs)
inline

Constructor.

Parameters
absunsigned half-precision value

Friends And Related Symbol Documentation

◆ operator*

f31 operator* ( f31  a,
f31  b 
)
friend

Multiplication operator.

Parameters
afirst operand
bsecond operand
Returns
a * b

◆ operator+

f31 operator+ ( f31  a,
f31  b 
)
friend

Addition operator.

Parameters
afirst operand
bsecond operand
Returns
a + b

◆ operator-

f31 operator- ( f31  a,
f31  b 
)
friend

Subtraction operator.

Parameters
afirst operand
bsecond operand
Returns
a - b

◆ operator/

f31 operator/ ( f31  a,
f31  b 
)
friend

Division operator.

Parameters
afirst operand
bsecond operand
Returns
a / b

The documentation for this struct was generated from the following file: