This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] pow and atan2 builtin functions (part 2)
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at www dot eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Feb 2003 10:12:16 -0800
- Subject: Re: [PATCH] pow and atan2 builtin functions (part 2)
- References: <Pine.LNX.4.44.0302101942010.10106-100000@www.eyesopen.com>
On Mon, Feb 10, 2003 at 07:51:10PM -0700, Roger Sayle wrote:
> * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
> (pow_optab, atan2_optab): Define corresponding macros.
> * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
> * genopinit.c (optabs): Implement pow_optab and atan2_optab
> using pow?f3 and atan2?f3 patterns.
> * builtins.c (expand_errno_check): New function to update errno
> if necessary, split out from expand_builtin_mathfn.
> (expand_builtin_mathfn): Use expand_errno_check.
> (expand_builtin_mathfn_2): New function to handle expanding binary
> math functions, reusing the code in expand_errno_check.
> (expand_builtin): Handle the pow and atan2 math built-ins,
> BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
> expand_builtin_mathfn_2.
>
> * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
Ok.
r~