projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make NaN behavior consistent with hardfloat
[riscv-isa-sim.git]
/
softfloat
/
s_shortShift128Right.c
1
2
#include <stdint.h>
3
#include
"platform.h"
4
#include
"primitives.h"
5
6
struct
uint128
7
softfloat_shortShift128Right
(
uint64_t
a64
,
uint64_t
a0
,
unsigned int
count
)
8
{
9
struct
uint128 z
;
10
11
z
.
v64
=
a64
>>
count
;
12
z
.
v0
=
a64
<<( ( -
count
) &
63
) |
a0
>>
count
;
13
return
z
;
14
15
}
16