Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
s_shortShiftRightJam128.c File Reference
#include <stdint.h>
#include "platform.h"
#include "primitiveTypes.h"
Include dependency graph for s_shortShiftRightJam128.c:

Go to the source code of this file.

Functions

struct uint128 softfloat_shortShiftRightJam128 (uint64_t a64, uint64_t a0, uint_fast8_t dist)
 

Function Documentation

◆ softfloat_shortShiftRightJam128()

struct uint128 softfloat_shortShiftRightJam128 ( uint64_t a64,
uint64_t a0,
uint_fast8_t dist )

Definition at line 44 of file s_shortShiftRightJam128.c.

46{
47 uint_fast8_t uNegDist;
48 struct uint128 z;
49
50 uNegDist = -dist;
51 z.v64 = a64>>dist;
52 z.v0 =
53 a64<<(uNegDist & 63) | a0>>dist
54 | ((uint64_t) (a0<<(uNegDist & 63)) != 0);
55 return z;
56
57}
uint8_t uint_fast8_t
Definition stdint.h:154
unsigned __int64 uint64_t
Definition stdint.h:136