#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.
◆ f64_to_f32()
Definition at line 44 of file f64_to_f32.c.
45{
48 bool sign;
54
55
56
58 uiA = uA.ui;
62
63
64 if ( exp == 0x7FF ) {
65 if ( frac ) {
68 } else {
70 }
71 goto uiZ;
72 }
73
74
76 if ( ! (exp | frac32) ) {
78 goto uiZ;
79 }
80
81
83 uiZ:
84 uZ.ui = uiZ;
85 return uZ.f;
86
87}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define softfloat_f64UIToCommonNaN(uiA, zPtr)
#define softfloat_commonNaNToF32UI(aPtr)
float32_t softfloat_roundPackToF32(bool, int_fast16_t, uint_fast32_t)
#define packToF32UI(sign, exp, sig)
uint64_t softfloat_shortShiftRightJam64(uint64_t a, uint_fast8_t dist)