projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix NaN propagation for fcvt
[riscv-isa-sim.git]
/
softfloat
/
s_shift64RightJam.c
1
2
#include <stdint.h>
3
#include
"platform.h"
4
#include
"primitives.h"
5
6
uint64_t
softfloat_shift64RightJam
(
uint64_t
a
,
unsigned int
count
)
7
{
8
9
return
10
(
count
<
64
)
11
?
a
>>
count
| ( (
uint64_t
) (
a
<<( ( -
count
) &
63
) ) !=
0
)
12
: (
a
!=
0
);
13
14
}
15