From: Brian Paul Date: Fri, 12 Sep 2008 14:22:15 +0000 (-0600) Subject: gallium: minor optimization to spe_load_int() X-Git-Tag: 062012170305~17580^2~496^2~734 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b71f4150c8be662d777da22ed0554663a9d1c84d;p=profile%2Fivi%2Fmesa.git gallium: minor optimization to spe_load_int() --- diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c index a04cc6c..62e3adb 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c +++ b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c @@ -505,7 +505,8 @@ spe_load_int(struct spe_function *p, unsigned rT, int i) } else { spe_ilhu(p, rT, i >> 16); - spe_iohl(p, rT, i & 0xffff); + if (i & 0xffff) + spe_iohl(p, rT, i & 0xffff); } }