[Gnucash-changes] remove 32-bit limits that show up in division
calculations (could cause
Derek Atkins
warlord at MIT.EDU
Sat Jun 26 12:52:06 EDT 2004
Since this code is duplicated in both div128 and rem128, should we
perhaps pull this out into a new subroutine? Or is that not worth
the hastle?
-derek
Linas Vepstas <linas at cvs.gnucash.org> writes:
> + gncint128 mu = mult128 (quotient.lo, d);
> +
> + gint64 nn = 0x7fffffffffffffffULL & n.lo;
> + gint64 rr = 0x7fffffffffffffffULL & mu.lo;
> + gint64 rnd = nn - rr;
> + rnd /= d;
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list