diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2015-01-11 07:38:35 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2015-01-11 07:38:35 +0000 |
commit | 091e51004ff35884f97fd141e30c0e057b42288c (patch) | |
tree | 3650ed687cde75e557c6b7a371bcdd4564a54ce3 | |
parent | fa55ddd224817a03e7d4792b64f854ee4a5cdd0b (diff) |
Minor code readability tweak
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1492 632fc199-4ca6-4c93-a231-07263d6284db
-rw-r--r-- | simd/jdcolext-altivec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/simd/jdcolext-altivec.c b/simd/jdcolext-altivec.c index 80dc94c..17c2e20 100644 --- a/simd/jdcolext-altivec.c +++ b/simd/jdcolext-altivec.c @@ -132,12 +132,8 @@ void jsimd_ycc_rgb_convert_altivec (JDIMENSION out_width, JSAMPIMAGE input_buf, * descaling the 32-bit results (right-shifting by 16 bits) and then * packing them. */ - gl = (__vector short)vec_perm((__vector unsigned short)g0, - (__vector unsigned short)g1, - shift_pack_index); - gh = (__vector short)vec_perm((__vector unsigned short)g2, - (__vector unsigned short)g3, - shift_pack_index); + gl = vec_perm((__vector short)g0, (__vector short)g1, shift_pack_index); + gh = vec_perm((__vector short)g2, (__vector short)g3, shift_pack_index); gl = vec_sub(gl, crl); gh = vec_sub(gh, crh); gl = vec_add(gl, yl); |