#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "softfloat.h"
Go to the source code of this file.
◆ ui32_to_f16()
Definition at line 42 of file ui32_to_f16.c.
43{
47
49 if ( 0 <= shiftDist ) {
50 u.ui =
53 : 0;
54 return u.f;
55 } else {
56 shiftDist += 4;
57 sig =
58 (shiftDist < 0)
59 ?
a>>(-shiftDist) | ((
uint32_t) (
a<<(shiftDist & 31)) != 0)
62 }
63
64}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
float16_t softfloat_roundPackToF16(bool, int_fast16_t, uint_fast16_t)
#define packToF16UI(sign, exp, sig)
#define softfloat_countLeadingZeros32