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

Go to the source code of this file.

Functions

struct exp8_sig16 softfloat_normSubnormalF16Sig (uint_fast16_t sig)
 

Function Documentation

◆ softfloat_normSubnormalF16Sig()

struct exp8_sig16 softfloat_normSubnormalF16Sig ( uint_fast16_t sig)

Definition at line 41 of file s_normSubnormalF16Sig.c.

42{
43 int_fast8_t shiftDist;
44 struct exp8_sig16 z;
45
46 shiftDist = softfloat_countLeadingZeros16( sig ) - 5;
47 z.exp = 1 - shiftDist;
48 z.sig = sig<<shiftDist;
49 return z;
50
51}
#define softfloat_countLeadingZeros16
int8_t int_fast8_t
Definition stdint.h:150
int_fast8_t exp
Definition internals.h:90
uint_fast16_t sig
Definition internals.h:90
Here is the caller graph for this function: