fp bug fix

This commit is contained in:
Kelvin Sherlock 2015-02-23 16:57:25 -05:00
parent 559f36c437
commit 2a62ad32d2

View File

@ -86,11 +86,11 @@ void fpinfo::init(long double *ld)
sexp = ((split *)ld)->i[1];
#else
i = ((split *)ld)->i[1];
sexp = ((split *)ld)->i[0];
sexp = ((split *)ld)->i[0] & 0xffff;
#endif
sign = sexp >> 15;
sig = sexp & ((1 << 15) - 1);
sign = (sexp >> 15) & 0x01;
exp = sexp & ((1 << 15) - 1);
one = i >> 63;
sig = i & ((UINT64_C(1) << 63) - 1);