]> granicus.if.org Git - libvpx/commitdiff
Remove labels from quantize
authorJohann <johannkoenig@google.com>
Thu, 19 Jun 2014 17:23:53 +0000 (10:23 -0700)
committerJohann <johannkoenig@google.com>
Thu, 19 Jun 2014 17:24:58 +0000 (10:24 -0700)
Use break instead of goto for early exit. Unbreaks Visual Studio
builds.

Change-Id: I96dee43a3c82145d4abe0d6a99af6e6e1a3991b5

vp8/encoder/x86/quantize_sse2.c
vp8/encoder/x86/quantize_sse4.c

index f495bf287d0090bc2e445f94a1209de47c1fdae2..291d21992fe7aede5c26edaca3b7180ac49f3df2 100644 (file)
         int cmp = (x[z] < boost) | (y[z] == 0); \
         zbin_boost_ptr++; \
         if (cmp) \
-            goto select_eob_end_##i; \
+            break; \
         qcoeff_ptr[z] = y[z]; \
         eob = i; \
         zbin_boost_ptr = b->zrun_zbin_boost; \
-        select_eob_end_##i:; \
     } while (0)
 
 void vp8_regular_quantize_b_sse2(BLOCK *b, BLOCKD *d)
index b2fecfd2f394caa1eb0461a5ed9eaac0d38c7da7..601dd23a2f78eb4f81ed8196655ddb07b1420b98 100644 (file)
 
 #define SELECT_EOB(i, z, x, y, q) \
     do { \
-        __label__ select_eob_end; \
         short boost = *zbin_boost_ptr; \
         short x_z = _mm_extract_epi16(x, z); \
         short y_z = _mm_extract_epi16(y, z); \
         int cmp = (x_z < boost) | (y_z == 0); \
         zbin_boost_ptr++; \
         if (cmp) \
-            goto select_eob_end; \
+            break; \
         q = _mm_insert_epi16(q, y_z, z); \
         eob = i; \
         zbin_boost_ptr = b->zrun_zbin_boost; \
-        select_eob_end:; \
     } while (0)
 
 void vp8_regular_quantize_b_sse4_1(BLOCK *b, BLOCKD *d) {