This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Nov 2002 10:28:57 -0800
- Subject: Re: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins
- References: <20021106102749.GF22059@kam.mff.cuni.cz>
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~