sparrow 1.4.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
half_float::detail::f31 Struct Reference

Class for 1.31 unsigned floating-point computation. More...

#include <float16_t.hpp>

Collaboration diagram for half_float::detail::f31:
[legend]

Public Member Functions

constexpr f31 (uint32 mant, int e)
 Constructor.
 
 f31 (unsigned int abs)
 Constructor.
 

Public Attributes

uint32 m
 mantissa as 1.31.
 
int exp
 exponent.
 

Friends

f31 operator+ (f31 a, f31 b)
 Addition operator.
 
f31 operator- (f31 a, f31 b)
 Subtraction operator.
 
f31 operator* (f31 a, f31 b)
 Multiplication operator.
 
f31 operator/ (f31 a, f31 b)
 Division operator.
 

Detailed Description

Class for 1.31 unsigned floating-point computation.

Definition at line 1484 of file float16_t.hpp.

Constructor & Destructor Documentation

◆ f31() [1/2]

half_float::detail::f31::f31 ( uint32 mant,
int e )
inlineconstexpr

Constructor.

Parameters
mantmantissa as 1.31
eexponent

Definition at line 1488 of file float16_t.hpp.

Here is the caller graph for this function:

◆ f31() [2/2]

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

Constructor.

Parameters
absunsigned half-precision value

Definition at line 1492 of file float16_t.hpp.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator*

f31 operator* ( f31 a,
f31 b )
friend

Multiplication operator.

Parameters
afirst operand
bsecond operand
Returns
a * b

Definition at line 1528 of file float16_t.hpp.

◆ operator+

f31 operator+ ( f31 a,
f31 b )
friend

Addition operator.

Parameters
afirst operand
bsecond operand
Returns
a + b

Definition at line 1502 of file float16_t.hpp.

◆ operator-

f31 operator- ( f31 a,
f31 b )
friend

Subtraction operator.

Parameters
afirst operand
bsecond operand
Returns
a - b

Definition at line 1515 of file float16_t.hpp.

◆ operator/

f31 operator/ ( f31 a,
f31 b )
friend

Division operator.

Parameters
afirst operand
bsecond operand
Returns
a / b

Definition at line 1538 of file float16_t.hpp.

Member Data Documentation

◆ exp

int half_float::detail::f31::exp

exponent.

Definition at line 1545 of file float16_t.hpp.

◆ m

uint32 half_float::detail::f31::m

mantissa as 1.31.

Definition at line 1544 of file float16_t.hpp.


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