This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins


On Wed, Nov 06, 2002 at 11:27:49AM +0100, Jan Hubicka wrote:
> 	* builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/rint
> 	(expand_builtin): Likewise.
> 	* 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.
> 	* genopinit.c (optabs): Initialize the new optabs.
> 	* optab.c (init_optabs): Likewise.
> 	* optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
> 	OTI_round, OTI_rint.
> 	(floor_optab, ceil_optab, trunc_optab, round_optab, rint_optab): New.
> 	* md.texi: Document new named patterns.

Ok, with the extend.texi hunk posted later.


r~


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