From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29788 invoked by alias); 6 Nov 2002 14:11:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29778 invoked from network); 6 Nov 2002 14:11:38 -0000 Received: from unknown (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sources.redhat.com with SMTP; 6 Nov 2002 14:11:38 -0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 4E26D4F9A3; Wed, 6 Nov 2002 15:11:37 +0100 (CET) Date: Wed, 06 Nov 2002 06:11:00 -0000 From: Jan Hubicka To: "Joseph S. Myers" Cc: Jan Hubicka , gcc-patches@gcc.gnu.org, rth@cygnus.com Subject: Re: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins Message-ID: <20021106141137.GA1316@atrey.karlin.mff.cuni.cz> References: <20021106102749.GF22059@kam.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2002-11/txt/msg00278.txt.bz2 > On Wed, 6 Nov 2002, Jan Hubicka wrote: > > > * builtins.def: Add > > __builtin_floor, __builtin_floorf, __builtin_floorl > > __builtin_ceil, __builtin_ceilf, __builtin_ceill > > __builtin_round, __builtin_roundf, __builtin_roundl > > __builtin_trunc, __builtin_truncf, __builtin_truncl > > __builtin_rint, __builtin_rintf, __builtin_rintl. > > Built-in functions must be documented in extend.texi. Sorry, somehow I've forgot about that hunk of patch. Wed Nov 6 15:09:21 CET 2002 Jan Hubicka * extend.texi (builtin functions) Document floor, floorf, floorl, ceil, ceilf, ceill, round, roundf, roundl, trunc, truncf, truncl, rint, rintf, rintl. Index: extend.texi =================================================================== RCS file: /cvs/gcc/egcs/gcc/doc/extend.texi,v retrieving revision 1.107 diff -c -3 -p -r1.107 extend.texi *** extend.texi 16 Oct 2002 13:14:21 -0000 1.107 --- extend.texi 6 Nov 2002 14:09:05 -0000 *************** v4si f (v4si a, v4si b, v4si c) *** 4568,4573 **** --- 4568,4588 ---- @findex strrchr @findex strspn @findex strstr + @findex floor + @findex floorf + @findex floorl + @findex ceil + @findex ceilf + @findex ceill + @findex round + @findex roundf + @findex roundl + @findex trunc + @findex truncf + @findex truncl + @findex rint + @findex rintf + @findex rintl GCC provides a large number of built-in functions other than the ones mentioned above. Some of these are for internal use in the processing *************** The ISO C99 functions @code{conj}, @code *** 4609,4621 **** functions except in strict ISO C90 mode. There are also built-in versions of the ISO C99 functions @code{cosf}, @code{cosl}, @code{expf}, @code{expl}, @code{fabsf}, @code{fabsl}, ! @code{logf}, @code{logl}, @code{sinf}, @code{sinl}, @code{sqrtf}, and ! @code{sqrtl}, that are recognized in any mode since ISO C90 reserves these names for the purpose to which ISO C99 puts them. All these functions have corresponding versions prefixed with @code{__builtin_}. The ISO C90 functions @code{abs}, @code{cos}, @code{exp}, @code{fabs}, @code{fprintf}, @code{fputs}, @code{labs}, @code{log}, @code{memcmp}, @code{memcpy}, @code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat}, @code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn}, --- 4624,4639 ---- functions except in strict ISO C90 mode. There are also built-in versions of the ISO C99 functions @code{cosf}, @code{cosl}, @code{expf}, @code{expl}, @code{fabsf}, @code{fabsl}, ! @code{logf}, @code{logl}, @code{sinf}, @code{sinl}, @code{sqrtf}, @code{sqrtl} ! @code{floorf}, @code{ceilf}, @code{roundf}, @code{trainf}, @code{rintf}, ! @code{floorl}, @code{ceill}, @code{roundl}, @code{trainl} and @code{rintl} ! that are recognized in any mode since ISO C90 reserves these names for the purpose to which ISO C99 puts them. All these functions have corresponding versions prefixed with @code{__builtin_}. The ISO C90 functions @code{abs}, @code{cos}, @code{exp}, @code{fabs}, @code{fprintf}, @code{fputs}, @code{labs}, @code{log}, + @code{floor}, @code{ceil}, @code{round}, @code{train}, @code{rint}, @code{memcmp}, @code{memcpy}, @code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat}, @code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn},