aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_shift32RightJam.c
blob: b697a34d3767a30616e1055b995b30efb01aa210 (plain)
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 );

}