aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_isSigNaNF64UI.c
blob: a5fbd2cc2d51218943c4316b8fcd1222add693d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// See LICENSE.SoftFloat for license details.


#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 ) );

}