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

Go to the source code of this file.

Functions

void softfloat_sub256M (const uint64_t *aPtr, const uint64_t *bPtr, uint64_t *zPtr)
 

Function Documentation

◆ softfloat_sub256M()

void softfloat_sub256M ( const uint64_t * aPtr,
const uint64_t * bPtr,
uint64_t * zPtr )

Definition at line 44 of file s_sub256M.c.

46{
47 unsigned int index;
48 uint_fast8_t borrow;
49 uint64_t wordA, wordB;
50
51 index = indexWordLo( 4 );
52 borrow = 0;
53 for (;;) {
54 wordA = aPtr[index];
55 wordB = bPtr[index];
56 zPtr[index] = wordA - wordB - borrow;
57 if ( index == indexWordHi( 4 ) ) break;
58 borrow = borrow ? (wordA <= wordB) : (wordA < wordB);
59 index += wordIncr;
60 }
61
62}
#define wordIncr
#define indexWordLo(total)
#define indexWordHi(total)
uint8_t uint_fast8_t
Definition stdint.h:154
unsigned __int64 uint64_t
Definition stdint.h:136
Here is the caller graph for this function: