aboutsummaryrefslogtreecommitdiff
path: root/softfloat/s_normSubnormalF64Sig.c
blob: 45a7c9eb4005b35af7dce1497132a2f9497343de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <stdint.h>
#include "platform.h"
#include "primitives.h"
#include "internals.h"

struct exp16_sig64 softfloat_normSubnormalF64Sig( uint_fast64_t sig )
{
    int shiftCount;
    struct exp16_sig64 z;

    shiftCount = softfloat_countLeadingZeros64( sig ) - 11;
    z.exp = 1 - shiftCount;
    z.sig = sig<<shiftCount;
    return z;

}