You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
784 B
26 lines
784 B
|
15 years ago
|
|
||
|
|
/*** UPDATE COMMENTS. ***/
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
#include <stdint.h>
|
||
|
|
#include "platform.h"
|
||
|
|
#include "internals.h"
|
||
|
|
#include "specialize.h"
|
||
|
|
#include "softfloat.h"
|
||
|
|
|
||
|
|
/*----------------------------------------------------------------------------
|
||
|
|
| Takes two double-precision floating-point values `a' and `b', one of which
|
||
|
|
| is a NaN, and returns the appropriate NaN result. If either `a' or `b' is a
|
||
|
|
| signaling NaN, the invalid exception is raised.
|
||
|
|
*----------------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
uint_fast64_t
|
||
|
|
softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB )
|
||
|
|
{
|
||
|
14 years ago
|
if ( softfloat_isSigNaNF64UI( uiA ) | softfloat_isSigNaNF64UI( uiB ) ) {
|
||
|
15 years ago
|
softfloat_raiseFlags( softfloat_flag_invalid );
|
||
|
|
}
|
||
|
14 years ago
|
return defaultNaNF64UI;
|
||
|
15 years ago
|
}
|
||
|
|
|