bug in calcru()
Chris Landauer
cal at rush.aero.org
Wed Jan 26 12:11:20 PST 2005
hihi, doug -
thanx for the suggestion - the notion of computing ut just with subtraction is
really good, since it is likely to be the largest of the three values in most
applications, but i'm a little worried that the 1024 multiplications aren't
large enough when tt gets really large - i'll do the math on it and report its
(provable) range of applicability and accuracy in a few days
more soon,
cal
Chris Landauer
Aerospace Integration Science Center
The Aerospace Corporation
cal at aero.org
> Doug Ambrisko <ambrisko at ambrisko.com> wrote
> ...
> /* Subdivide tu. try to becareful of overflow */
> su = tu * (st * 1024 / tt) / 1024;
> iu = tu * (it * 1024 / tt) / 1024;
> uu = tu - (su + iu);
> ...
More information about the freebsd-hackers
mailing list