#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "softfloat.h"
Go to the source code of this file.
◆ i32_to_f16()
Definition at line 43 of file i32_to_f16.c.
44{
45 bool sign;
50
54 if ( 0 <= shiftDist ) {
55 u.ui =
58 : 0;
59 return u.f;
60 } else {
61 shiftDist += 4;
62 sig =
63 (shiftDist < 0)
64 ? absA>>(-shiftDist)
65 | ((
uint32_t) (absA<<(shiftDist & 31)) != 0)
68 }
69
70}
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