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

Go to the source code of this file.

Functions

struct exp16_sig32 softfloat_normSubnormalF32Sig (uint_fast32_t sig)
 

Function Documentation

◆ softfloat_normSubnormalF32Sig()

struct exp16_sig32 softfloat_normSubnormalF32Sig ( uint_fast32_t sig)

Definition at line 41 of file s_normSubnormalF32Sig.c.

42{
43 int_fast8_t shiftDist;
44 struct exp16_sig32 z;
45
46 shiftDist = softfloat_countLeadingZeros32( sig ) - 8;
47 z.exp = 1 - shiftDist;
48 z.sig = sig<<shiftDist;
49 return z;
50
51}
#define softfloat_countLeadingZeros32
int8_t int_fast8_t
Definition stdint.h:150
uint_fast32_t sig
Definition internals.h:111
int_fast16_t exp
Definition internals.h:111