performance regression: inlining with constant arguments
Kelley Cook
kelley.r.cook@gm.com
Tue Jun 18 07:40:00 GMT 2002
Although I agree with your assesment that gcc 3.1 should still determine that
"cpu" is unchanging on its own, your code will do what you wish if if you simply
replace:
static inline void MC_avg1_8 (int height, char * dest, char * ref, int stride,
int cpu)
with
static inline void MC_avg1_8 (int height, char * dest, char * ref, int stride,
const int cpu)
More information about the Gcc
mailing list