mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-21 09:30:55 +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];
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user