[xcc] minor performance tweaks
[riscv-isa-sim.git] / softfloat / 8086 / s_commonNaNToF32UI.c
1
2 #include <stdint.h>
3 #include "platform.h"
4 #include "specialize.h"
5
6 /*----------------------------------------------------------------------------
7 | Returns the result of converting the canonical NaN `a' to the single-
8 | precision floating-point format.
9 *----------------------------------------------------------------------------*/
10
11 uint_fast32_t softfloat_commonNaNToF32UI( struct commonNaN a )
12 {
13
14 return (uint_fast32_t) a.sign<<31 | 0x7FC00000 | a.v64>>41;
15
16 }
17