projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
temporary undoing of renaming
[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