Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fp32.h
Go to the documentation of this file.
1
#ifndef __compiler_rt_fp_32_h__
2
#define __compiler_rt_fp_32_h__
3
4
#include <limits.h>
5
#include <
stdint.h
>
6
7
typedef
uint32_t
rep_t
;
8
9
#define REP_C (uint32_t)
10
#define significandBits 23
11
#define typeWidth (sizeof(rep_t)*CHAR_BIT)
12
#define exponentBits (typeWidth - significandBits - 1)
13
#define maxExponent ((1 << exponentBits) - 1)
14
#define exponentBias (maxExponent >> 1)
15
16
#define implicitBit (REP_C(1) << significandBits)
17
#define significandMask (implicitBit - 1U)
18
#define signBit (REP_C(1) << (significandBits + exponentBits))
19
#define absMask (signBit - 1U)
20
#define exponentMask (absMask ^ significandMask)
21
#define oneRep ((rep_t)exponentBias << significandBits)
22
#define infRep exponentMask
23
#define quietBit (implicitBit >> 1)
24
#define qnanRep (exponentMask | quietBit)
25
26
#endif
//__compiler_rt_fp_h__
rep_t
uint32_t rep_t
Definition
fp32.h:7
stdint.h
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
libraries
builtins
fp32.h
Generated by
1.12.0