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


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

uint64_t softfloat_shift64RightJam( uint64_t a, unsigned int count )
{

    return
        ( count < 64 )
            ? a>>count | ( (uint64_t) ( a<<( ( - count ) & 63 ) ) != 0 )
            : ( a != 0 );

}