Re: GCC optimizes integer overflow: bug or feature?

2006-12-20 Thread Marcin Dalecki
7;t think in terms of infinite arithmetics when programming. And I hold up that the difference between finite and infinite is actually quite a fundamental concept. However quite a lot of people expect the floating arithmetics rouding to give them well behaved results. Marcin Dalecki

Re: GCC optimizes integer overflow: bug or feature?

2006-12-20 Thread Marcin Dalecki
using natural numbers, which don't include negatives, with integers. However it's a quite common mistake to forget how "bad" floats "model" real numbers. This corroborates the validity of the analogy with IEEE real arithmetic. And wrong assumptions lead to wrong conclusions. Marcin Dalecki

Re: GCC optimizes integer overflow: bug or feature? (was: avoid integer overflow in mktime.m4)

2006-12-20 Thread Marcin Dalecki
float isn't! Thus this argument by analogy simply isn't valid. Marcin Dalecki