Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
ui32_to_f128.c File Reference
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "softfloat.h"
Include dependency graph for ui32_to_f128.c:

Go to the source code of this file.

Functions

float128_t ui32_to_f128 (uint32_t a)
 

Function Documentation

◆ ui32_to_f128()

float128_t ui32_to_f128 ( uint32_t a)

Definition at line 42 of file ui32_to_f128.c.

43{
44 uint_fast64_t uiZ64;
45 int_fast8_t shiftDist;
46 union ui128_f128 uZ;
47
48 uiZ64 = 0;
49 if ( a ) {
50 shiftDist = softfloat_countLeadingZeros32( a ) + 17;
51 uiZ64 =
52 packToF128UI64(
53 0, 0x402E - shiftDist, (uint_fast64_t) a<<shiftDist );
54 }
55 uZ.ui.v64 = uiZ64;
56 uZ.ui.v0 = 0;
57 return uZ.f;
58
59}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
#define softfloat_countLeadingZeros32
uint64_t uint_fast64_t
Definition stdint.h:157
int8_t int_fast8_t
Definition stdint.h:150
Here is the caller graph for this function: