comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Feature, or bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Feature, or bug? [message #80295 is a reply to message #80231] Wed, 23 May 2012 12:32 Go to previous message
whdaffer is currently offline  whdaffer
Messages: 10
Registered: January 2000
Junior Member
On May 21, 10:13 am, fawltylangu...@gmail.com wrote:
>> Hmmmm... Well check_math _does_ claim that it will report integer
>> overflow, in bit 1.
>
>> But I wouldn't be using check_math to check for that condition in the
>> construct I was using anyway, so it's moot that check_math apparently
>> falls down on the job, at least in this case.
>
>> Thanks for the explanation.
>
>> whd
>
>>> regards,
>>> Lajos
>
> The check_math help says: "Some hardware/operating system combinations may not report all of the math errors listed." Integer overflow is listed, but not checked and reported :-)

Why yes! So it does. And just one line after the table where it claims
to report integer overflows!

The right hand giveth, and the left taketh away, I guess ;-)


>
> Integer overflow is "undefined behaviour" in standard C, so it can not be done in a portable way. The glibc manual says:
>
> FPE_INTOVF_TRAP
>
>     Integer overflow (impossible in a C program unless you enable overflow trapping in a hardware-specific fashion).

Which, means, effectively, that check_math for integer overflow is
worthless since I doubt that ITT or whatever they're called this week
is going to enable overflow trapping in a hardware-specific fashion.

Is the situation similar for the other errors?

whd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Subscription 'daily digest' problems?
Next Topic: Shut down X connection?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:30:11 PDT 2025

Total time taken to generate the page: 1.92336 seconds