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

Go to the source code of this file.

Functions

void softfloat_shortShiftRightJamM (uint_fast8_t size_words, const uint32_t *aPtr, uint_fast8_t dist, uint32_t *zPtr)
 

Function Documentation

◆ softfloat_shortShiftRightJamM()

void softfloat_shortShiftRightJamM ( uint_fast8_t size_words,
const uint32_t * aPtr,
uint_fast8_t dist,
uint32_t * zPtr )

Definition at line 44 of file s_shortShiftRightJamM.c.

50{
51 uint_fast8_t uNegDist;
52 unsigned int index, lastIndex;
53 uint32_t partWordZ, wordA;
54
55 uNegDist = -dist;
56 index = indexWordLo( size_words );
57 lastIndex = indexWordHi( size_words );
58 wordA = aPtr[index];
59 partWordZ = wordA>>dist;
60 if ( partWordZ<<dist != wordA ) partWordZ |= 1;
61 while ( index != lastIndex ) {
62 wordA = aPtr[index + wordIncr];
63 zPtr[index] = wordA<<(uNegDist & 31) | partWordZ;
64 index += wordIncr;
65 partWordZ = wordA>>dist;
66 }
67 zPtr[index] = partWordZ;
68
69}
#define wordIncr
#define indexWordLo(total)
#define indexWordHi(total)
unsigned int uint32_t
Definition stdint.h:126
uint8_t uint_fast8_t
Definition stdint.h:154
Here is the caller graph for this function: