mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
fp bug fix
This commit is contained in:
parent
559f36c437
commit
2a62ad32d2
@ -86,11 +86,11 @@ void fpinfo::init(long double *ld)
|
|||||||
sexp = ((split *)ld)->i[1];
|
sexp = ((split *)ld)->i[1];
|
||||||
#else
|
#else
|
||||||
i = ((split *)ld)->i[1];
|
i = ((split *)ld)->i[1];
|
||||||
sexp = ((split *)ld)->i[0];
|
sexp = ((split *)ld)->i[0] & 0xffff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sign = sexp >> 15;
|
sign = (sexp >> 15) & 0x01;
|
||||||
sig = sexp & ((1 << 15) - 1);
|
exp = sexp & ((1 << 15) - 1);
|
||||||
|
|
||||||
one = i >> 63;
|
one = i >> 63;
|
||||||
sig = i & ((UINT64_C(1) << 63) - 1);
|
sig = i & ((UINT64_C(1) << 63) - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user