This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFApproval, trunk] Optimization of Complex OP Real.
On Thu, May 09, 2002 at 09:47:51PM +0200, Toon Moene wrote:
> + #define COMPLEX_REAL_PART_ZERO_P(REAL, CLASS) ((REAL) == 0 || \
> + flag_unsafe_math_optimizations \
> + && (CLASS) == MODE_COMPLEX_FLOAT \
> + && (REAL) == const0_rtx)
Parenthesis problem. You want
(((REAL) == 0 || flag_unsafe_math_optimizations)
&& (CLASS) == MODE_COMPLEX_FLOAT
&& (REAL) == const0_rtx)
> + #define COMPLEX_IMAG_PART_ZERO_P(IMAG, CLASS) ((IMAG) == 0 || \
> + flag_unsafe_math_optimizations \
> + && (CLASS) == MODE_COMPLEX_FLOAT \
> + && (IMAG) == const0_rtx)
I don't see the point of having both of these, since they are
identical. Also, lets avoid gratuitous macros when we can.
Make this a static inline function.
r~