Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-05 Thread Tobias Burnus
Andreas Schwab wrote: Janne Blomqvist writes: On Sat, May 5, 2012 at 2:31 PM, Andreas Schwab wrote: mpfr 2.3.1 doesn't have mpfr_fmod. I know, but since GCC requires at least mpfr 2.4.2 we're ok. No, it doesn't. From 4.8's ./configure: # If we have GMP, check the MPFR version. ...

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-05 Thread Andreas Schwab
Janne Blomqvist writes: > On Sat, May 5, 2012 at 2:31 PM, Andreas Schwab wrote: >> Janne Blomqvist writes: >> >>> - When the arguments are constant, use mpfr_fmod instead of the naive >> >> mpfr 2.3.1 doesn't have mpfr_fmod. > > I know, but since GCC requires at least mpfr 2.4.2 we're ok. No,

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-05 Thread Janne Blomqvist
On Sat, May 5, 2012 at 2:31 PM, Andreas Schwab wrote: > Janne Blomqvist writes: > >> - When the arguments are constant, use mpfr_fmod instead of the naive > > mpfr 2.3.1 doesn't have mpfr_fmod. I know, but since GCC requires at least mpfr 2.4.2 we're ok. -- Janne Blomqvist

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-05 Thread Andreas Schwab
Janne Blomqvist writes: > - When the arguments are constant, use mpfr_fmod instead of the naive mpfr 2.3.1 doesn't have mpfr_fmod. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely diffe

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-05 Thread Janne Blomqvist
On Fri, May 4, 2012 at 6:11 PM, Mikael Morin wrote: > On 02/05/2012 21:22, Janne Blomqvist wrote: >> PING #2 >> >> On Thu, Apr 26, 2012 at 12:20 AM, Janne Blomqvist >> wrote: >>> PING! >>> >>> On Thu, Apr 19, 2012 at 00:46, Janne Blomqvist >>> wrote: Hi, the attached patch impleme

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-04 Thread Mikael Morin
On 02/05/2012 21:22, Janne Blomqvist wrote: > PING #2 > > On Thu, Apr 26, 2012 at 12:20 AM, Janne Blomqvist > wrote: >> PING! >> >> On Thu, Apr 19, 2012 at 00:46, Janne Blomqvist >> wrote: >>> Hi, >>> >>> the attached patch implements a few fixes and cleanups for the MOD and >>> MODULO intrinsic

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-05-02 Thread Janne Blomqvist
PING #2 On Thu, Apr 26, 2012 at 12:20 AM, Janne Blomqvist wrote: > PING! > > On Thu, Apr 19, 2012 at 00:46, Janne Blomqvist > wrote: >> Hi, >> >> the attached patch implements a few fixes and cleanups for the MOD and >> MODULO intrinsics. >> >> - When the arguments are constant, use mpfr_fmod in

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-04-25 Thread Janne Blomqvist
PING! On Thu, Apr 19, 2012 at 00:46, Janne Blomqvist wrote: > Hi, > > the attached patch implements a few fixes and cleanups for the MOD and > MODULO intrinsics. > > - When the arguments are constant, use mpfr_fmod instead of the naive > algorithms which are numerically unstable for large argumen

[Patch, fortran] PR 49010/24518 MOD/MODULO fixes, take 2

2012-04-18 Thread Janne Blomqvist
Hi, the attached patch implements a few fixes and cleanups for the MOD and MODULO intrinsics. - When the arguments are constant, use mpfr_fmod instead of the naive algorithms which are numerically unstable for large arguments. This extends the PR 24518 fix to constant arguments as well, and makes

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes

2012-04-04 Thread Janne Blomqvist
On Wed, Apr 4, 2012 at 12:11, Tobias Burnus wrote: > Janne Blomqvist wrote: >> the attached patch implements a few fixes and cleanups for the MOD and >> MODULO intrinsics. > >> The patch adds notes to the documentation about the usage of fmod, so >> users interested in corner-case behavior can loo

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes

2012-04-04 Thread Tobias Burnus
Janne Blomqvist wrote: > the attached patch implements a few fixes and cleanups for the MOD and > MODULO intrinsics. > The patch adds notes to the documentation about the usage of fmod, so > users interested in corner-case behavior can look up how that function > is supposed to behave on their tar

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes

2012-04-03 Thread Janne Blomqvist
PING**2 On Wed, Mar 21, 2012 at 23:45, Janne Blomqvist wrote: > PING > > On Wed, Mar 14, 2012 at 01:03, Janne Blomqvist > wrote: >> Hi, >> >> the attached patch implements a few fixes and cleanups for the MOD and >> MODULO intrinsics. >> >> - When the arguments are constant, use mpfr_fmod instea

Re: [Patch, fortran] PR 49010/24518 MOD/MODULO fixes

2012-03-21 Thread Janne Blomqvist
PING On Wed, Mar 14, 2012 at 01:03, Janne Blomqvist wrote: > Hi, > > the attached patch implements a few fixes and cleanups for the MOD and > MODULO intrinsics. > > - When the arguments are constant, use mpfr_fmod instead of the naive > algorithms which are numerically unstable for large argument

[Patch, fortran] PR 49010/24518 MOD/MODULO fixes

2012-03-13 Thread Janne Blomqvist
Hi, the attached patch implements a few fixes and cleanups for the MOD and MODULO intrinsics. - When the arguments are constant, use mpfr_fmod instead of the naive algorithms which are numerically unstable for large arguments. This extends the PR 24518 fix to constant arguments as well, and makes