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

Go to the source code of this file.

Functions

void softfloat_negXM (uint_fast8_t size_words, uint32_t *zPtr)
 

Function Documentation

◆ softfloat_negXM()

void softfloat_negXM ( uint_fast8_t size_words,
uint32_t * zPtr )

Definition at line 43 of file s_negXM.c.

44{
45 unsigned int index, lastIndex;
46 uint_fast8_t carry;
48
49 index = indexWordLo( size_words );
50 lastIndex = indexWordHi( size_words );
51 carry = 1;
52 for (;;) {
53 word = ~zPtr[index] + carry;
54 zPtr[index] = word;
55 if ( index == lastIndex ) break;
56 index += wordIncr;
57 if ( word ) carry = 0;
58 }
59
60}
static const AddressFrame word(16)
#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