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

Go to the source code of this file.

Functions

bool f32_eq (float32_t a, float32_t b)
 

Function Documentation

◆ f32_eq()

bool f32_eq ( float32_t a,
float32_t b )

Definition at line 44 of file f32_eq.c.

45{
46 union ui32_f32 uA;
47 uint_fast32_t uiA;
48 union ui32_f32 uB;
49 uint_fast32_t uiB;
50
51 uA.f = a;
52 uiA = uA.ui;
53 uB.f = b;
54 uiB = uB.ui;
55 if ( isNaNF32UI( uiA ) || isNaNF32UI( uiB ) ) {
56 if (
58 ) {
60 }
61 return false;
62 }
63 return (uiA == uiB) || ! (uint32_t) ((uiA | uiB)<<1);
64
65}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
void softfloat_raiseFlags(uint_fast8_t flags)
#define softfloat_isSigNaNF32UI(uiA)
Definition specialize.h:130
#define isNaNF32UI(a)
Definition internals.h:109
@ softfloat_flag_invalid
Definition softfloat.h:89
unsigned int uint32_t
Definition stdint.h:126
uint32_t uint_fast32_t
Definition stdint.h:156
float32_t f
Definition internals.h:46
Here is the call graph for this function:
Here is the caller graph for this function: