1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 ); }