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

Go to the source code of this file.

Functions

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

Function Documentation

◆ softfloat_shortShiftLeftM()

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

Definition at line 44 of file s_shortShiftLeftM.c.

50{
51 uint_fast8_t uNegDist;
52 unsigned int index, lastIndex;
53 uint32_t partWordZ, wordA;
54
55 uNegDist = -dist;
56 index = indexWordHi( size_words );
57 lastIndex = indexWordLo( size_words );
58 partWordZ = aPtr[index]<<dist;
59 while ( index != lastIndex ) {
60 wordA = aPtr[index - wordIncr];
61 zPtr[index] = partWordZ | wordA>>(uNegDist & 31);
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