------- Comment #11 from sgk at troutmask dot apl dot washington dot edu  
2006-10-26 04:03 -------
Subject: Re:  Intrinsic MOD incorrect for large arg1/arg2 and slow.

On Wed, Oct 25, 2006 at 08:19:21AM -0000, fxcoudert at gcc dot gnu dot org
wrote:
> 
> I'm adding Steve Kargl to the CC list, since he's our arithmetics expert :)

You flatter me. :-O

> 
> (In reply to comment #6)
> > Revision 118024 clears the way for MOD and MODULO implementation:
> > http://gcc.gnu.org/ml/gcc-cvs/2006-10/msg00703.html
> 
> Just to be sure I understand: we are garanteed that BUILT_IN_REMAINDER{F,,L}
> and BUILT_IN_FMOD{F,,L} are always available, right?

If a target supports the builtin, then gfortran can be made to
use it.  In fact, you can't disable builtins.

troutmask:sgk[274] gfc -fno-builtin -c sqrt90.f90
f951: warning: command line option "-fno-builtin" is valid for
C/C++/ObjC/ObjC++ but not for Fortran

If a target does not have builtins for fmod and remainder and
configure provides HAVE_FMOD and HAVE_REMAINDER macros, gfortranr
could punt to library routines like we do for spacing, rrspacing, etc.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24518

Reply via email to