This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Provide basic folding for __builtin_powi
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: rguenth at tat dot physik dot uni-tuebingen dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Feb 2005 19:03:07 -0500 (EST)
- Subject: Re: [PATCH] Provide basic folding for __builtin_powi
- References: <420A8A79.9010202@tat.physik.uni-tuebingen.de>
> 2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
>
> * builtins.c (fold_builtin_powi): New function.
> (fold_builtin_1): Call it.
>
Perhaps instead of copying code, you could put the common bits in a
fold_builtin_pow_common and have both pow builtins call it?
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu