lkml.org 
[lkml]   [1996]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: signed int for interrupts??
Date
> > 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

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.082 / U:2.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site