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

Go to the source code of this file.

Functions

void softfloat_sub1XM (uint_fast8_t size_words, uint32_t *zPtr)
 

Function Documentation

◆ softfloat_sub1XM()

void softfloat_sub1XM ( uint_fast8_t size_words,
uint32_t * zPtr )

Definition at line 43 of file s_sub1XM.c.

44{
45 unsigned int index, lastIndex;
46 uint32_t wordA;
47
48 index = indexWordLo( size_words );
49 lastIndex = indexWordHi( size_words );
50 for (;;) {
51 wordA = zPtr[index];
52 zPtr[index] = wordA - 1;
53 if ( wordA || (index == lastIndex) ) break;
54 index += wordIncr;
55 }
56
57}
#define wordIncr
#define indexWordLo(total)
#define indexWordHi(total)
unsigned int uint32_t
Definition stdint.h:126