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

Home » Public Forums » archive » -32768
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: -32768 [message #88129 is a reply to message #88127] Fri, 21 March 2014 12:55 Go to previous messageGo to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Friday, March 21, 2014 7:39:45 PM UTC+1, Yngvar Larsen wrote:

>> The C standard guarantees modulo 2^N arithmetic for unsigned integers only. For signed integers, the behavior is undefined.
>
> Thanks for the info! I didn't know that. Fortunately, I haven't had to do much numerical work in C lately.
>
> Do you by any chance know the rationale behind that?

Optimization. There is an excellent blog post about undefined behavior at:

http://blog.llvm.org/2011/05/what-every-c-programmer-should- know.html

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Killing Widget Objects
Next Topic: How to choose the pixels along a curve in an image

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

Current Time: Fri Oct 10 15:10:30 PDT 2025

Total time taken to generate the page: 1.35965 seconds