lkml.org 
[lkml]   [1998]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: have a look at this proggie, please.
> 
> Output:
>
> -2147483648 * -1 = -2147483648
> Floating exception
> ^^^^^^^^^^^^^^^^^^
>
> Quite obviously, -MAXINT-1 * -1 is too large for an integer to hold (by
> one), but it should *NOT* report a floating exception... Right?!
>
Yes but.... What signal should it generate? You need some trap because
once math is invalid, you really don't want to continue. There isn't
a SIGINTEGEROVERFLOW!


Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.128 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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