diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-01 16:24:05 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-01 16:24:44 -0800 |
commit | a95b44df9d142a49f3e1bfe4a60d259ed41ca247 (patch) | |
tree | 49f59c903609e5b0de05d5b0c7f7bd23de8c4f13 /softfloat/s_f32UIToCommonNaN.c | |
parent | bea283531abfd013811e83c75ff6189a0d9b3075 (diff) | |
download | spike-a95b44df9d142a49f3e1bfe4a60d259ed41ca247.zip spike-a95b44df9d142a49f3e1bfe4a60d259ed41ca247.tar.gz spike-a95b44df9d142a49f3e1bfe4a60d259ed41ca247.tar.bz2 |
Upgrade to latest SoftFloat
Diffstat (limited to 'softfloat/s_f32UIToCommonNaN.c')
-rw-r--r--[-rwxr-xr-x] | softfloat/s_f32UIToCommonNaN.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/softfloat/s_f32UIToCommonNaN.c b/softfloat/s_f32UIToCommonNaN.c index 9ee0db9..8b13789 100755..100644 --- a/softfloat/s_f32UIToCommonNaN.c +++ b/softfloat/s_f32UIToCommonNaN.c @@ -1,25 +1 @@ -
-#include <stdint.h>
-#include "platform.h"
-#include "specialize.h"
-#include "softfloat.h"
-
-/*----------------------------------------------------------------------------
-| Returns the result of converting the single-precision floating-point NaN
-| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid
-| exception is raised.
-*----------------------------------------------------------------------------*/
-struct commonNaN softfloat_f32UIToCommonNaN( uint_fast32_t uiA )
-{
- struct commonNaN z;
-
- if ( softfloat_isSigNaNF32UI( uiA ) ) {
- softfloat_raiseFlags( softfloat_flag_invalid );
- }
- z.sign = uiA>>31;
- z.v64 = (uint_fast64_t) 0x7FFFF <<41;
- z.v0 = 0;
- return z;
-
-}
-
+ |