Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
f64_le_quiet.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 f64_le_quiet.c:

Go to the source code of this file.

Functions

bool f64_le_quiet (float64_t a, float64_t b)
 

Function Documentation

◆ f64_le_quiet()

bool f64_le_quiet ( float64_t a,
float64_t b )

Definition at line 44 of file f64_le_quiet.c.

45{
46 union ui64_f64 uA;
47 uint_fast64_t uiA;
48 union ui64_f64 uB;
49 uint_fast64_t uiB;
50 bool signA, signB;
51
52 uA.f = a;
53 uiA = uA.ui;
54 uB.f = b;
55 uiB = uB.ui;
56 if ( isNaNF64UI( uiA ) || isNaNF64UI( uiB ) ) {
57 if (
59 ) {
61 }
62 return false;
63 }
64 signA = signF64UI( uiA );
65 signB = signF64UI( uiB );
66 return
67 (signA != signB)
68 ? signA || ! ((uiA | uiB) & UINT64_C( 0x7FFFFFFFFFFFFFFF ))
69 : (uiA == uiB) || (signA ^ (uiA < uiB));
70
71}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
void softfloat_raiseFlags(uint_fast8_t flags)
#define softfloat_isSigNaNF64UI(uiA)
Definition specialize.h:165
#define isNaNF64UI(a)
Definition internals.h:130
#define signF64UI(a)
Definition internals.h:125
@ softfloat_flag_invalid
Definition softfloat.h:89
uint64_t uint_fast64_t
Definition stdint.h:157
#define UINT64_C(val)
Definition stdint.h:284
float64_t f
Definition internals.h:47
Here is the call graph for this function: