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

Go to the source code of this file.

Functions

bool f128_le (float128_t a, float128_t b)
 

Function Documentation

◆ f128_le()

bool f128_le ( float128_t a,
float128_t b )

Definition at line 43 of file f128_le.c.

44{
45 union ui128_f128 uA;
46 uint_fast64_t uiA64, uiA0;
47 union ui128_f128 uB;
48 uint_fast64_t uiB64, uiB0;
49 bool signA, signB;
50
51 uA.f = a;
52 uiA64 = uA.ui.v64;
53 uiA0 = uA.ui.v0;
54 uB.f = b;
55 uiB64 = uB.ui.v64;
56 uiB0 = uB.ui.v0;
57 if ( isNaNF128UI( uiA64, uiA0 ) || isNaNF128UI( uiB64, uiB0 ) ) {
59 return false;
60 }
61 signA = signF128UI64( uiA64 );
62 signB = signF128UI64( uiB64 );
63 return
64 (signA != signB)
65 ? signA
66 || ! (((uiA64 | uiB64) & UINT64_C( 0x7FFFFFFFFFFFFFFF ))
67 | uiA0 | uiB0)
68 : ((uiA64 == uiB64) && (uiA0 == uiB0))
69 || (signA ^ softfloat_lt128( uiA64, uiA0, uiB64, uiB0 ));
70
71}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
void softfloat_raiseFlags(uint_fast8_t flags)
@ softfloat_flag_invalid
Definition softfloat.h:89
bool softfloat_lt128(uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0)
Definition s_lt128.c:43
uint64_t uint_fast64_t
Definition stdint.h:157
#define UINT64_C(val)
Definition stdint.h:284
Here is the call graph for this function: