aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_isSigNaNF32UI.c
diff options
context:
space:
mode:
Diffstat (limited to 'softfloat/s_isSigNaNF32UI.c')
-rwxr-xr-xsoftfloat/s_isSigNaNF32UI.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/softfloat/s_isSigNaNF32UI.c b/softfloat/s_isSigNaNF32UI.c
new file mode 100755
index 0000000..0a9c33f
--- /dev/null
+++ b/softfloat/s_isSigNaNF32UI.c
@@ -0,0 +1,13 @@
+
+#include <stdbool.h>
+#include <stdint.h>
+#include "platform.h"
+#include "specialize.h"
+
+bool softfloat_isSigNaNF32UI( uint_fast32_t ui )
+{
+
+ return ( ( ui>>22 & 0x1FF ) == 0x1FE ) && ( ui & 0x003FFFFF );
+
+}
+