Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fp32.h File Reference
#include <limits.h>
#include <stdint.h>
Include dependency graph for fp32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REP_C   (uint32_t)
 
#define significandBits   23
 
#define typeWidth   (sizeof(rep_t)*CHAR_BIT)
 
#define exponentBits   (typeWidth - significandBits - 1)
 
#define maxExponent   ((1 << exponentBits) - 1)
 
#define exponentBias   (maxExponent >> 1)
 
#define implicitBit   (REP_C(1) << significandBits)
 
#define significandMask   (implicitBit - 1U)
 
#define signBit   (REP_C(1) << (significandBits + exponentBits))
 
#define absMask   (signBit - 1U)
 
#define exponentMask   (absMask ^ significandMask)
 
#define oneRep   ((rep_t)exponentBias << significandBits)
 
#define infRep   exponentMask
 
#define quietBit   (implicitBit >> 1)
 
#define qnanRep   (exponentMask | quietBit)
 

Typedefs

typedef uint32_t rep_t
 

Macro Definition Documentation

◆ absMask

#define absMask   (signBit - 1U)

Definition at line 19 of file fp32.h.

◆ exponentBias

#define exponentBias   (maxExponent >> 1)

Definition at line 14 of file fp32.h.

◆ exponentBits

#define exponentBits   (typeWidth - significandBits - 1)

Definition at line 12 of file fp32.h.

◆ exponentMask

#define exponentMask   (absMask ^ significandMask)

Definition at line 20 of file fp32.h.

◆ implicitBit

#define implicitBit   (REP_C(1) << significandBits)

Definition at line 16 of file fp32.h.

◆ infRep

#define infRep   exponentMask

Definition at line 22 of file fp32.h.

◆ maxExponent

#define maxExponent   ((1 << exponentBits) - 1)

Definition at line 13 of file fp32.h.

◆ oneRep

#define oneRep   ((rep_t)exponentBias << significandBits)

Definition at line 21 of file fp32.h.

◆ qnanRep

#define qnanRep   (exponentMask | quietBit)

Definition at line 24 of file fp32.h.

◆ quietBit

#define quietBit   (implicitBit >> 1)

Definition at line 23 of file fp32.h.

◆ REP_C

#define REP_C   (uint32_t)

Definition at line 9 of file fp32.h.

◆ signBit

#define signBit   (REP_C(1) << (significandBits + exponentBits))

Definition at line 18 of file fp32.h.

◆ significandBits

#define significandBits   23

Definition at line 10 of file fp32.h.

◆ significandMask

#define significandMask   (implicitBit - 1U)

Definition at line 17 of file fp32.h.

◆ typeWidth

#define typeWidth   (sizeof(rep_t)*CHAR_BIT)

Definition at line 11 of file fp32.h.

Typedef Documentation

◆ rep_t

typedef uint32_t rep_t

Definition at line 7 of file fp32.h.