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


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

struct uint128
 softfloat_shortShift128Right( uint64_t a64, uint64_t a0, unsigned int count )
{
    struct uint128 z;

    z.v64 = a64>>count;
    z.v0 = a64<<( ( - count ) & 63 ) | a0>>count;
    return z;

}