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

Go to the source code of this file.

Functions

void ui32_to_extF80M (uint32_t a, extFloat80_t *zPtr)
 

Function Documentation

◆ ui32_to_extF80M()

void ui32_to_extF80M ( uint32_t a,
extFloat80_t * zPtr )

Definition at line 53 of file ui32_to_extF80M.c.

54{
55 struct extFloat80M *zSPtr;
56 uint_fast16_t uiZ64;
57 uint64_t sigZ;
58 int_fast8_t shiftDist;
59
60 zSPtr = (struct extFloat80M *) zPtr;
61 uiZ64 = 0;
62 sigZ = 0;
63 if ( a ) {
64 shiftDist = softfloat_countLeadingZeros32( a );
65 uiZ64 = packToExtF80UI64( 0, 0x401E - shiftDist );
66 sigZ = (uint64_t) (a<<shiftDist)<<32;
67 }
68 zSPtr->signExp = uiZ64;
69 zSPtr->signif = sigZ;
70
71}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
#define packToExtF80UI64(sign, exp)
Definition internals.h:148
#define softfloat_countLeadingZeros32
uint16_t uint_fast16_t
Definition stdint.h:155
int8_t int_fast8_t
Definition stdint.h:150
unsigned __int64 uint64_t
Definition stdint.h:136
uint64_t signif
uint16_t signExp