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

Go to the source code of this file.

Functions

bool f128_eq (float128_t a, float128_t b)
 

Function Documentation

◆ f128_eq()

bool f128_eq ( float128_t a,
float128_t b )

Definition at line 44 of file f128_eq.c.

45{
46 union ui128_f128 uA;
47 uint_fast64_t uiA64, uiA0;
48 union ui128_f128 uB;
49 uint_fast64_t uiB64, uiB0;
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 ) ) {
58 if (
59 softfloat_isSigNaNF128UI( uiA64, uiA0 )
60 || softfloat_isSigNaNF128UI( uiB64, uiB0 )
61 ) {
63 }
64 return false;
65 }
66 return
67 (uiA0 == uiB0)
68 && ( (uiA64 == uiB64)
69 || (! uiA0 && ! ((uiA64 | uiB64) & UINT64_C( 0x7FFFFFFFFFFFFFFF )))
70 );
71
72}
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
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: