Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::float_decoder Union Reference

#include <ieee754_decoder.hpp>

Public Member Functions

 float_decoder ()
 float_decoder (float _f)
 float_decoder ()
 float_decoder (float _f)

Public Attributes

float f
struct { 
   uint32_t   fraction: 23 
   uint32_t   exponent: 8 
   uint32_t   sign: 1 
} parts
struct { 
   uint32_t   fraction: 23 
   uint32_t   exponent: 8 
   uint32_t   sign: 1 
} parts
uint32_t bits

Constructor & Destructor Documentation

◆ float_decoder() [1/4]

sw::universal::float_decoder::float_decoder ( )
inline

◆ float_decoder() [2/4]

sw::universal::float_decoder::float_decoder ( float _f)
inline

◆ float_decoder() [3/4]

sw::universal::float_decoder::float_decoder ( )
inline

◆ float_decoder() [4/4]

sw::universal::float_decoder::float_decoder ( float _f)
inline

Member Data Documentation

◆ bits

uint32_t sw::universal::float_decoder::bits

◆ exponent

uint32_t sw::universal::float_decoder::exponent

◆ f

float sw::universal::float_decoder::f

◆ fraction

uint32_t sw::universal::float_decoder::fraction

◆ [struct] [1/2]

struct { ... } sw::universal::float_decoder::parts

◆ [struct] [2/2]

struct { ... } sw::universal::float_decoder::parts

◆ sign

uint32_t sw::universal::float_decoder::sign

The documentation for this union was generated from the following files: