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_shortShift32Right1Jam.c
diff --git a/softfloat/s_shortShift32Right1Jam.c
b/softfloat/s_shortShift32Right1Jam.c
new file mode 100755
(executable)
index 0000000..
db4c304
--- /dev/null
+++ b/
softfloat/s_shortShift32Right1Jam.c
@@ -0,0
+1,12
@@
+
+#include <stdint.h>
+#include "platform.h"
+#include "primitives.h"
+
+uint32_t softfloat_shortShift32Right1Jam( uint32_t a )
+{
+
+ return a>>1 | ( a & 1 );
+
+}
+