diff options
Diffstat (limited to 'softfloat/s_shortShift128ExtraRightJam.c')
-rwxr-xr-x | softfloat/s_shortShift128ExtraRightJam.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/softfloat/s_shortShift128ExtraRightJam.c b/softfloat/s_shortShift128ExtraRightJam.c new file mode 100755 index 0000000..c772740 --- /dev/null +++ b/softfloat/s_shortShift128ExtraRightJam.c @@ -0,0 +1,20 @@ +
+#include <stdint.h>
+#include "platform.h"
+#include "primitives.h"
+
+struct uint128_extra
+ softfloat_shortShift128ExtraRightJam(
+ uint64_t a64, uint64_t a0, uint64_t extra, unsigned int count )
+{
+ unsigned int negCount;
+ struct uint128_extra z;
+
+ negCount = - count;
+ z.v64 = a64>>count;
+ z.v0 = a64<<( negCount & 63 ) | a0>>count;
+ z.extra = a0<<( negCount & 63 ) | ( extra != 0 );
+ return z;
+
+}
+
|