Commit c0dd8e0fe2e75ef4aaa5576f1cc7a57a447cc7b7

Authored by Danny Al-Gaaf
1 parent 277819a9
Exists in master and in 2 other branches v2, v3

gf_w64.c: remove dead assignments and unused variable 'm2'

The 'm2' variable in gf_w64_clm_multiply_region_from_single_2() isn't
used except for calculations on 'm2' which are not used later in the code.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
src/gf_w64.c
... ... @@ -100,7 +100,7 @@ xor)
100 100 __m128i result, r1;
101 101 __m128i prim_poly;
102 102 __m128i w;
103   - __m128i m1, m2, m3, m4;
  103 + __m128i m1, m3, m4;
104 104 gf_internal_t * h = gf->scratch;
105 105  
106 106 if (val == 0) { gf_multby_zero(dest, bytes, xor); return; }
... ... @@ -112,8 +112,6 @@ xor)
112 112 prim_poly = _mm_set_epi32(0, 0, 0, (uint32_t)(h->prim_poly & 0xffffffffULL));
113 113 b = _mm_insert_epi64 (_mm_setzero_si128(), val, 0);
114 114 m1 = _mm_set_epi32(0, 0, 0, (uint32_t)0xffffffff);
115   - m2 = _mm_slli_si128(m1, 4);
116   - m2 = _mm_or_si128(m1, m2);
117 115 m3 = _mm_slli_si128(m1, 8);
118 116 m4 = _mm_slli_si128(m3, 4);
119 117  
... ...