From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21690 invoked by alias); 5 Sep 2014 11:16:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21655 invoked by uid 89); 5 Sep 2014 11:16:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: edge10.ethz.ch Received: from edge10.ethz.ch (HELO edge10.ethz.ch) (82.130.75.186) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 05 Sep 2014 11:16:07 +0000 Received: from CAS11.d.ethz.ch (172.31.38.211) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 5 Sep 2014 13:16:01 +0200 Received: from MBX23.d.ethz.ch ([fe80::68b6:1e46:3e74:b8fd]) by CAS11.d.ethz.ch ([fe80::ecc9:4e2d:b26b:1614%10]) with mapi id 14.03.0195.001; Fri, 5 Sep 2014 13:16:03 +0200 From: "VandeVondele Joost" To: Steve Kargl CC: Gerald Pfeifer , "gcc-patches@gcc.gnu.org" , "fortran@gcc.gnu.org" Subject: RE: [PATCH] PR fortran/62245 fix INT docs. Date: Fri, 05 Sep 2014 11:16:00 -0000 Message-ID: <908103EDB4893A42920B21D3568BFD93150F2035@MBX23.d.ethz.ch> References: <908103EDB4893A42920B21D3568BFD9312F37DC4@MBX23.d.ethz.ch> <908103EDB4893A42920B21D3568BFD9312F3ADDE@MBX23.d.ethz.ch> <20140824154913.GA46132@troutmask.apl.washington.edu> <908103EDB4893A42920B21D3568BFD9312F3BE97@MBX23.d.ethz.ch>,<20140824165643.GA46452@troutmask.apl.washington.edu> In-Reply-To: <20140824165643.GA46452@troutmask.apl.washington.edu> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2014-09/txt/msg00478.txt.bz2 > >The last sentence above is not needed. So, revised patch without the last sentence. 2014-09-05 Joost VandeVondele PR fortran/62245 * intrinsic.texi (INT): clarify result. Index: fortran/intrinsic.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- fortran/intrinsic.texi (revision 214949) +++ fortran/intrinsic.texi (working copy) @@ -7370,9 +7370,10 @@ the following rules: @item (A) If @var{A} is of type @code{INTEGER}, @code{INT(A) =3D A}=20 @item (B) -If @var{A} is of type @code{REAL} and @math{|A| < 1}, @code{INT(A)} equals= @code{0}.=20 -If @math{|A| \geq 1}, then @code{INT(A)} equals the largest integer that d= oes not exceed=20 -the range of @var{A} and whose sign is the same as the sign of @var{A}. +If @var{A} is of type @code{REAL} and @math{|A| < 1}, @code{INT(A)} +equals @code{0}. If @math{|A| \geq 1}, then @code{INT(A)} is the integer +whose magnitude is the largest integer that does not exceed the magnitude +of @var{A} and whose sign is the same as the sign of @var{A}. @item (C) If @var{A} is of type @code{COMPLEX}, rule B is applied to the real part o= f @var{A}. @end table