45a7c9eb4005b35af7dce1497132a2f9497343de
[riscv-isa-sim.git] / softfloat / s_normSubnormalF64Sig.c
1
2 #include <stdint.h>
3 #include "platform.h"
4 #include "primitives.h"
5 #include "internals.h"
6
7 struct exp16_sig64 softfloat_normSubnormalF64Sig( uint_fast64_t sig )
8 {
9 int shiftCount;
10 struct exp16_sig64 z;
11
12 shiftCount = softfloat_countLeadingZeros64( sig ) - 11;
13 z.exp = 1 - shiftCount;
14 z.sig = sig<<shiftCount;
15 return z;
16
17 }
18