diff options
Diffstat (limited to 'softfloat/SoftFloat-3/source/s_shortShift64ExtraRightJam.c')
-rwxr-xr-x | softfloat/SoftFloat-3/source/s_shortShift64ExtraRightJam.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/softfloat/SoftFloat-3/source/s_shortShift64ExtraRightJam.c b/softfloat/SoftFloat-3/source/s_shortShift64ExtraRightJam.c new file mode 100755 index 0000000..b861c67 --- /dev/null +++ b/softfloat/SoftFloat-3/source/s_shortShift64ExtraRightJam.c @@ -0,0 +1,17 @@ +
+#include <stdint.h>
+#include "platform.h"
+#include "primitives.h"
+
+struct uint64_extra
+ softfloat_shortShift64ExtraRightJam(
+ uint64_t a, uint64_t extra, unsigned int count )
+{
+ struct uint64_extra z;
+
+ z.v = a>>count;
+ z.extra = a<<( ( - count ) & 63 ) | ( extra != 0 );
+ return z;
+
+}
+
|