aboutsummaryrefslogtreecommitdiff
path: root/softfloat_riscv/s_isSigNaNF64UI.c
blob: d2552132facfdca0066f0b94b6f1f7402934bcb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "specialize.h"

bool softfloat_isSigNaNF64UI( uint_fast64_t ui )
{

    return
        ( ( ui>>51 & 0xFFF ) == 0xFFE )
            && ( ui & UINT64_C( 0x0007FFFFFFFFFFFF ) );

}