Re: [boost] Compiler status for GCC 3.3

2003-07-05 Thread Joerg Walter
- Original Message - From: "Gabriel Dos Reis" <[EMAIL PROTECTED]> To: "Boost mailing list" <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 12:06 PM Subject: Re: [boost] Compiler status for GCC 3.3 [...] > | I'm not sure about this. Paul C. Leopardi and Guillaume Melquiond already > | re

[boost] Re: Boost::thread feature request: thread priority

2003-07-05 Thread Maxim Egorushkin
"Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Maxim Egorushkin wrote: > [...] > > Seems like the issue is undefined behaviour when casting away volatile. > > Do I get it right? > > Yes, UB is the issue ("one of the most obvious tips of the iceberg"). > > Well,

Re: [boost] Re: is_nan

2003-07-05 Thread Joel de Guzman
Fernando Cacciola <[EMAIL PROTECTED]> wrote: > Gabriel Dos Reis <[EMAIL PROTECTED]> wrote in >> Yes. It is an incorrect (unfortunately popular) >> implementation. >> > Right. We should say that more often. It is incorrect > however popular. > > Most compilers provide a non standard extension

[boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Beman Dawes
test_fp_comparisions has been failing for a long time. The issue has to do with how much tolerance to allow for rounding errors. The close_at_tolerance algorithm calculates tolerance as follows: n*std::numeric_limits::epsilon()/2 where n is the number of possible floating-point rounding erro

Re: [boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Guillaume Melquiond
On Sat, 5 Jul 2003, Beman Dawes wrote: > test_fp_comparisions has been failing for a long time. The issue has to do > with how much tolerance to allow for rounding errors. > > The close_at_tolerance algorithm calculates tolerance as follows: > > n*std::numeric_limits::epsilon()/2 > > where n i

Re: [boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Beman Dawes
At 12:18 PM 7/5/2003, Guillaume Melquiond wrote: >On Sat, 5 Jul 2003, Beman Dawes wrote: > >> What is happening here? It seems to me that the error checking code >> itself that computes the values to be checked (d1 and d2) introduces one >> to four possible additional rounding errors. (The error

Re: [boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Guillaume Melquiond
On Sat, 5 Jul 2003, Beman Dawes wrote: > fpt_abs may do a unary "-" operation. I'm assuming, perhaps incorrectly, > that is essentially subtraction and subject to a possible rounding error. I don't think there is a system where the opposite of a representable number would not be a representable n

Re: [boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Beman Dawes
At 01:29 PM 7/5/2003, Guillaume Melquiond wrote: >On Sat, 5 Jul 2003, Beman Dawes wrote: > >> fpt_abs may do a unary "-" operation. I'm assuming, perhaps incorrectly, >> that is essentially subtraction and subject to a possible rounding error. > >I don't think there is a system where the opposite

[boost] Re: Re: is_nan

2003-07-05 Thread Fernando Cacciola
-- Fernando Cacciola fernando_cacciola-at-movi-dot-com-dot-ar "Guillaume Melquiond" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > On Fri, 4 Jul 2003, Fernando Cacciola wrote: > > > Gabriel Dos Reis <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > "jvd" <

[boost] Re: Re: is_nan

2003-07-05 Thread Fernando Cacciola
"Joel de Guzman" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Fernando Cacciola <[EMAIL PROTECTED]> wrote: > > Gabriel Dos Reis <[EMAIL PROTECTED]> wrote in > > >> Yes. It is an incorrect (unfortunately popular) > >> implementation. > >> > > Right. We should say that more of

[boost] Re: test_fp_comparisons and rounding errors

2003-07-05 Thread Gennadiy Rozental
"Beman Dawes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > test_fp_comparisons has been failing for a long time. The issue has to do > with how much tolerance to allow for rounding errors. > > The close_at_tolerance algorithm calculates tolerance as follows: > > n*std::numeric_

Re: [boost] Re: Re: is_nan

2003-07-05 Thread Guillaume Melquiond
On Sat, 5 Jul 2003, Fernando Cacciola wrote: > Thanks to Gabriel we may have an is_nan() right now. > Is there anything else that the interval library uses which might be better > packed as a compiler-platform specific routine? All the hardware rounding mode selection stuff. It's equivalent to th

Re: [boost] test_fp_comparisons and rounding errors

2003-07-05 Thread Guillaume Melquiond
On Sat, 5 Jul 2003, Beman Dawes wrote: > So where does that leave us? There must be some reason Gennadiy's code is > producing results one or two epsilons greater than expected. It's just because the testcases are wrong. For example, line 157, there is: tmp = 11; tmp /= 10; BOOST_CHECK_C