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

Go to the source code of this file.

Functions

bool f16_le_quiet (float16_t a, float16_t b)
 

Function Documentation

◆ f16_le_quiet()

bool f16_le_quiet ( float16_t a,
float16_t b )

Definition at line 44 of file f16_le_quiet.c.

45{
46 union ui16_f16 uA;
47 uint_fast16_t uiA;
48 union ui16_f16 uB;
49 uint_fast16_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 ( isNaNF16UI( uiA ) || isNaNF16UI( uiB ) ) {
57 if (
59 ) {
61 }
62 return false;
63 }
64 signA = signF16UI( uiA );
65 signB = signF16UI( uiB );
66 return
67 (signA != signB) ? signA || ! (uint16_t) ((uiA | uiB)<<1)
68 : (uiA == uiB) || (signA ^ (uiA < uiB));
69
70}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
void softfloat_raiseFlags(uint_fast8_t flags)
#define softfloat_isSigNaNF16UI(uiA)
Definition specialize.h:95
#define isNaNF16UI(a)
Definition internals.h:88
#define signF16UI(a)
Definition internals.h:83
@ softfloat_flag_invalid
Definition softfloat.h:89
unsigned short uint16_t
Definition stdint.h:125
uint16_t uint_fast16_t
Definition stdint.h:155
float16_t f
Definition internals.h:45
Here is the call graph for this function: