aboutsummaryrefslogtreecommitdiff
path: root/softfloat/8086/s_commonNaNToF32UI.c
blob: 3b96c417632e061f5c4f2dcb4646c9932e441b4f (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 | 0x7FC00000 | a.v64>>41;

}