aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_commonNaNToF32UI.c
blob: 61f27356eebf50e770ae0d66a0b01f874144b567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#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;

}