#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "specialize.h"
#include "softfloat.h"
Go to the source code of this file.
◆ softfloat_propagateNaNF64UI()
Definition at line 51 of file s_propagateNaNF64UI.c.
52{
53 bool isSigNaNA, isSigNaNB;
55
56
57
60
61
62
63 uiNonsigA = uiA |
UINT64_C( 0x0008000000000000 );
64 uiNonsigB = uiB |
UINT64_C( 0x0008000000000000 );
65
66
67 if ( isSigNaNA | isSigNaNB ) {
69 if ( isSigNaNA ) {
70 if ( isSigNaNB ) goto returnLargerMag;
71 return isNaNF64UI( uiB ) ? uiNonsigB : uiNonsigA;
72 } else {
73 return isNaNF64UI( uiA ) ? uiNonsigA : uiNonsigB;
74 }
75 }
76 returnLargerMag:
77 uiMagA = uiA &
UINT64_C( 0x7FFFFFFFFFFFFFFF );
78 uiMagB = uiB &
UINT64_C( 0x7FFFFFFFFFFFFFFF );
79 if ( uiMagA < uiMagB ) return uiNonsigB;
80 if ( uiMagB < uiMagA ) return uiNonsigA;
81 return (uiNonsigA < uiNonsigB) ? uiNonsigA : uiNonsigB;
82
83}
void softfloat_raiseFlags(uint_fast8_t flags)
#define softfloat_isSigNaNF64UI(uiA)