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

Go to the source code of this file.

Functions

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

Function Documentation

◆ softfloat_shortShiftRightM()

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

Definition at line 44 of file s_shortShiftRightM.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 partWordZ = aPtr[index]>>dist;
59 while ( index != lastIndex ) {
60 wordA = aPtr[index + wordIncr];
61 zPtr[index] = wordA<<(uNegDist & 31) | partWordZ;
62 index += wordIncr;
63 partWordZ = wordA>>dist;
64 }
65 zPtr[index] = partWordZ;
66
67}
#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: