diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-12 08:22:15 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-12 08:22:15 -0600 |
commit | b71f4150c8be662d777da22ed0554663a9d1c84d (patch) | |
tree | a32a61a79f4433ca9995f97bee37331aa2995c97 | |
parent | be5d8bd07886157fe524b8715509cd03ade2fda9 (diff) |
gallium: minor optimization to spe_load_int()
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c index a04cc6c4ff..62e3adb357 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); } } |