projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sim] made softfloat files C instead of C++
[riscv-isa-sim.git]
/
softfloat
/
s_shortShift64RightJam.c
diff --git a/softfloat/s_shortShift64RightJam.c
b/softfloat/s_shortShift64RightJam.c
new file mode 100755
(executable)
index 0000000..
0da6c93
--- /dev/null
+++ b/
softfloat/s_shortShift64RightJam.c
@@ -0,0
+1,12
@@
+
+#include <stdint.h>
+#include "platform.h"
+#include "primitives.h"
+
+uint64_t softfloat_shortShift64RightJam( uint64_t a, unsigned int count )
+{
+
+ return a>>count | ( ( a & ( ( (uint64_t) 1<<count ) - 1 ) ) != 0 );
+
+}
+