Re: signed int for interrupts??
Giles Douglas (giles@roadkill.onlinemagic.com)
Mon, 9 Sep 1996 18:04:29 +0100 (BST)
> > This was a disappointment. I was looking forward to seeing my Cyclades
> > interrupt count wrap at 2^32 and start counting up again...but just
> > noticed that procinfo was reporting it to be stuck at (2^31)-1. Looking
> > into /proc revealed this:
>
> Now I'm confused...2**31 is a huge number.
>
> If you have interrupts at 1 Megahertz, (10**6), you still have a big
> enough number for 10*25 seconds of interrupts.
Er, no, 10 = 2^3.32 (roughly).
so 10 ^ 6 = (2 ^ 3.32) ^ 6 = 2 ^ (3.32 * 6) = 2 ^ 19.9
So you'd have 2 ^ (32 - 19.9) = 2 ^ (12.1) = 4300 seconds. (Approx)
> [Body supressed because author appears as not to criticise authors
> mathematical ability any further]
All numbers approximate of course. :-)
Unless your computer is base 10?
Giles
---
Giles Douglas, Online Magic NY, giles@onlinemagic.net, +1 212 373 0237