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

Go to the source code of this file.

Functions

bool f128_eq_signaling (float128_t a, float128_t b)
 

Function Documentation

◆ f128_eq_signaling()

bool f128_eq_signaling ( float128_t a,
float128_t b )

Definition at line 43 of file f128_eq_signaling.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
50 uA.f = a;
51 uiA64 = uA.ui.v64;
52 uiA0 = uA.ui.v0;
53 uB.f = b;
54 uiB64 = uB.ui.v64;
55 uiB0 = uB.ui.v0;
56 if ( isNaNF128UI( uiA64, uiA0 ) || isNaNF128UI( uiB64, uiB0 ) ) {
58 return false;
59 }
60 return
61 (uiA0 == uiB0)
62 && ( (uiA64 == uiB64)
63 || (! uiA0 && ! ((uiA64 | uiB64) & UINT64_C( 0x7FFFFFFFFFFFFFFF )))
64 );
65
66}
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: