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.
18 lines
474 B
18 lines
474 B
|
15 years ago
|
|
||
|
|
#include <stdint.h>
|
||
|
|
#include "platform.h"
|
||
|
|
#include "specialize.h"
|
||
|
|
|
||
|
|
/*----------------------------------------------------------------------------
|
||
|
|
| Returns the result of converting the canonical NaN `a' to the single-
|
||
|
|
| precision floating-point format.
|
||
|
|
*----------------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
uint_fast32_t softfloat_commonNaNToF32UI( struct commonNaN a )
|
||
|
|
{
|
||
|
|
|
||
|
|
return (uint_fast32_t) a.sign<<31 | 0x7FFFFFFF;
|
||
|
|
|
||
|
|
}
|
||
|
|
|