On Mon, 1 Aug 2005 14:05:01 +0200 "K.G." <[EMAIL PROTECTED]> wrote: > On Mon, 1 Aug 2005 18:41:17 +1000 Andrew Clausen <[EMAIL PROTECTED]> wrote: > > > On Mon, Aug 01, 2005 at 10:25:55AM +0200, K.G. wrote: > > > This is exactly the problem i guessed in my previous mail. > > > There is an off by one error due to FP arith. > > > > > > The equation system should be solved by something like > > > HR1 - hR2 => cyl_size = ( Ha_ - hA_ ) / (Hc - hC ) > > > > Have you got time to write a patch, including a patch to the comments? > > It sounds like you're already on top of the problem... I always find FP > > issues rather mind-boggling! > > > > To achieve maximum security over overflow, I need the maximum size of > c, h, s, a, in bits,
I'm answering to myself because this one was too easy ;) So C is 10 bits, H 8 and S 6 Correct me if i'm wrong... Guillaume _______________________________________________ Bug-parted mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-parted
