This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [DOC PATCH] Change the name of truncM2 insn pattern to btruncM2


Quoting Eric Botcazou <ebotcazou@libertysurf.fr>:

> > 2005-05-05  Uros Bizjak  <uros@kss-loka.si>
> >
> >         * doc/md.texi (Standard Names): Change insn pattern
> >         name from truncM2 to btruncM2 for 'trunc' built-in description.
> >         Add rintM2 insn pattern description to nearbyintM2 insn
> >         pattern description.
> 
> Sorry for being picky, but I think you're going to confuse back-end hackers. 
> 
> Either the patterns are the same and get rid of one of them, or they are not
> 
> and document them separately.

They have the same functionality, but rint will raise the  inexact  exception
when the result differs in value from the argument. Do you think we should
emphasize this in gcc document? In this case, I would also suggest adding
separate description for rint:

`rintM2'
     Store the argument rounded according to the default rounding mode and
the  inexact  exception
       when the result differs in value from the argument



     The `nearbyint' and `rint' built-in functions of C always use the


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]