projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f7f4ce80534e95ca39a3ed87cea75537c21f71a1
[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