diff options
Diffstat (limited to 'softfloat/s_shift32RightJam.c')
-rwxr-xr-x | softfloat/s_shift32RightJam.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/softfloat/s_shift32RightJam.c b/softfloat/s_shift32RightJam.c new file mode 100755 index 0000000..b697a34 --- /dev/null +++ b/softfloat/s_shift32RightJam.c @@ -0,0 +1,15 @@ + +#include <stdint.h> +#include "platform.h" +#include "primitives.h" + +uint32_t softfloat_shift32RightJam( uint32_t a, unsigned int count ) +{ + + return + ( count < 32 ) + ? a>>count | ( (uint32_t) ( a<<( ( - count ) & 31 ) ) != 0 ) + : ( a != 0 ); + +} + |