aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_commonNaNToF32UI.c
blob: ada69d1983a3ed13b5adef25199962285e6e8db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// See LICENSE.SoftFloat for license details.


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

}