aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_shortShift64RightJam.c
blob: 623eda33a56affd690c1b4c8162d225f077742d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// See LICENSE.SoftFloat for license details.


#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 );

}