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

Go to the source code of this file.

Functions

float64_t ui64_to_f64 (uint64_t a)
 

Function Documentation

◆ ui64_to_f64()

float64_t ui64_to_f64 ( uint64_t a)

Definition at line 42 of file ui64_to_f64.c.

43{
44 union ui64_f64 uZ;
45
46 if ( ! a ) {
47 uZ.ui = 0;
48 return uZ.f;
49 }
50 if ( a & UINT64_C( 0x8000000000000000 ) ) {
51 return
53 0, 0x43D, softfloat_shortShiftRightJam64( a, 1 ) );
54 } else {
55 return softfloat_normRoundPackToF64( 0, 0x43C, a );
56 }
57
58}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
float64_t softfloat_roundPackToF64(bool, int_fast16_t, uint_fast64_t)
float64_t softfloat_normRoundPackToF64(bool, int_fast16_t, uint_fast64_t)
uint64_t softfloat_shortShiftRightJam64(uint64_t a, uint_fast8_t dist)
#define UINT64_C(val)
Definition stdint.h:284