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

Go to the source code of this file.

Functions

int_fast8_t softfloat_compare96M (const uint32_t *aPtr, const uint32_t *bPtr)
 

Function Documentation

◆ softfloat_compare96M()

int_fast8_t softfloat_compare96M ( const uint32_t * aPtr,
const uint32_t * bPtr )

Definition at line 43 of file s_compare96M.c.

44{
45 unsigned int index, lastIndex;
46 uint32_t wordA, wordB;
47
48 index = indexWordHi( 3 );
49 lastIndex = indexWordLo( 3 );
50 for (;;) {
51 wordA = aPtr[index];
52 wordB = bPtr[index];
53 if ( wordA != wordB ) return (wordA < wordB) ? -1 : 1;
54 if ( index == lastIndex ) break;
55 index -= wordIncr;
56 }
57 return 0;
58
59}
#define wordIncr
#define indexWordLo(total)
#define indexWordHi(total)
unsigned int uint32_t
Definition stdint.h:126
Here is the caller graph for this function: