[3.4-BIB] Add trunc/round/floor/ceil/rint builtins

Jan Hubicka jh@suse.cz
Wed Nov 6 06:11:00 GMT 2002


> 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  <jh@suse.cz>
	* 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},



More information about the Gcc-patches mailing list