#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "specialize.h"
#include "softfloat.h"
Go to the source code of this file.
◆ f16_to_f32()
Definition at line 44 of file f16_to_f32.c.
45{
48 bool sign;
55
56
57
59 uiA = uA.ui;
63
64
65 if ( exp == 0x1F ) {
66 if ( frac ) {
69 } else {
71 }
72 goto uiZ;
73 }
74
75
76 if ( ! exp ) {
77 if ( ! frac ) {
79 goto uiZ;
80 }
82 exp = normExpSig.exp - 1;
83 frac = normExpSig.sig;
84 }
85
86
88 uiZ:
89 uZ.ui = uiZ;
90 return uZ.f;
91
92}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define softfloat_f16UIToCommonNaN(uiA, zPtr)
#define softfloat_commonNaNToF32UI(aPtr)
struct exp8_sig16 softfloat_normSubnormalF16Sig(uint_fast16_t)
#define packToF32UI(sign, exp, sig)