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

Go to the source code of this file.

Functions

float32_t ui32_to_f32 (uint32_t a)
 

Function Documentation

◆ ui32_to_f32()

float32_t ui32_to_f32 ( uint32_t a)

Definition at line 42 of file ui32_to_f32.c.

43{
44 union ui32_f32 uZ;
45
46 if ( ! a ) {
47 uZ.ui = 0;
48 return uZ.f;
49 }
50 if ( a & 0x80000000 ) {
51 return softfloat_roundPackToF32( 0, 0x9D, a>>1 | (a & 1) );
52 } else {
53 return softfloat_normRoundPackToF32( 0, 0x9C, a );
54 }
55
56}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
float32_t softfloat_roundPackToF32(bool, int_fast16_t, uint_fast32_t)
float32_t softfloat_normRoundPackToF32(bool, int_fast16_t, uint_fast32_t)
Here is the call graph for this function:
Here is the caller graph for this function: