Commit 8a78dc49 authored by Johann's avatar Johann Committed by Gerrit Code Review
Browse files

Merge "Remove labels from quantize"

Showing with 2 additions and 5 deletions
...@@ -26,11 +26,10 @@ ...@@ -26,11 +26,10 @@
int cmp = (x[z] < boost) | (y[z] == 0); \ int cmp = (x[z] < boost) | (y[z] == 0); \
zbin_boost_ptr++; \ zbin_boost_ptr++; \
if (cmp) \ if (cmp) \
goto select_eob_end_##i; \ break; \
qcoeff_ptr[z] = y[z]; \ qcoeff_ptr[z] = y[z]; \
eob = i; \ eob = i; \
zbin_boost_ptr = b->zrun_zbin_boost; \ zbin_boost_ptr = b->zrun_zbin_boost; \
select_eob_end_##i:; \
} while (0) } while (0)
void vp8_regular_quantize_b_sse2(BLOCK *b, BLOCKD *d) void vp8_regular_quantize_b_sse2(BLOCK *b, BLOCKD *d)
......
...@@ -17,18 +17,16 @@ ...@@ -17,18 +17,16 @@
#define SELECT_EOB(i, z, x, y, q) \ #define SELECT_EOB(i, z, x, y, q) \
do { \ do { \
__label__ select_eob_end; \
short boost = *zbin_boost_ptr; \ short boost = *zbin_boost_ptr; \
short x_z = _mm_extract_epi16(x, z); \ short x_z = _mm_extract_epi16(x, z); \
short y_z = _mm_extract_epi16(y, z); \ short y_z = _mm_extract_epi16(y, z); \
int cmp = (x_z < boost) | (y_z == 0); \ int cmp = (x_z < boost) | (y_z == 0); \
zbin_boost_ptr++; \ zbin_boost_ptr++; \
if (cmp) \ if (cmp) \
goto select_eob_end; \ break; \
q = _mm_insert_epi16(q, y_z, z); \ q = _mm_insert_epi16(q, y_z, z); \
eob = i; \ eob = i; \
zbin_boost_ptr = b->zrun_zbin_boost; \ zbin_boost_ptr = b->zrun_zbin_boost; \
select_eob_end:; \
} while (0) } while (0)
void vp8_regular_quantize_b_sse4_1(BLOCK *b, BLOCKD *d) { void vp8_regular_quantize_b_sse4_1(BLOCK *b, BLOCKD *d) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment