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

Go to the source code of this file.

Functions

struct uint128_extra softfloat_shortShiftRightJam128Extra (uint64_t a64, uint64_t a0, uint64_t extra, uint_fast8_t dist)
 

Function Documentation

◆ softfloat_shortShiftRightJam128Extra()

struct uint128_extra softfloat_shortShiftRightJam128Extra ( uint64_t a64,
uint64_t a0,
uint64_t extra,
uint_fast8_t dist )

Definition at line 44 of file s_shortShiftRightJam128Extra.c.

46{
47 uint_fast8_t uNegDist;
48 struct uint128_extra z;
49
50 uNegDist = -dist;
51 z.v.v64 = a64>>dist;
52 z.v.v0 = a64<<(uNegDist & 63) | a0>>dist;
53 z.extra = a0<<(uNegDist & 63) | (extra != 0);
54 return z;
55
56}
uint8_t uint_fast8_t
Definition stdint.h:154
Here is the caller graph for this function: