diff options
Diffstat (limited to 'softfloat/8086/s_isSigNaNF32UI.c')
-rwxr-xr-x | softfloat/8086/s_isSigNaNF32UI.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/softfloat/8086/s_isSigNaNF32UI.c b/softfloat/8086/s_isSigNaNF32UI.c new file mode 100755 index 0000000..0a9c33f --- /dev/null +++ b/softfloat/8086/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 ); + +} + |