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


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

struct uint64_extra
 softfloat_shortShift64ExtraRightJam(
     uint64_t a, uint64_t extra, unsigned int count )
{
    struct uint64_extra z;

    z.v = a>>count;
    z.extra = a<<( ( - count ) & 63 ) | ( extra != 0 );
    return z;

}