aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_shortShift64RightJam.c
blob: 0da6c931beca31a53d2a744cdf5fc1a9340c4d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#include <stdint.h>
#include "platform.h"
#include "primitives.h"

uint64_t softfloat_shortShift64RightJam( uint64_t a, unsigned int count )
{

    return a>>count | ( ( a & ( ( (uint64_t) 1<<count ) - 1 ) ) != 0 );

}