From 0ff65bbcac9c6297e1976baca21a9ed487e3c966 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sun, 3 Feb 2008 20:37:46 +0100 Subject: [PATCH] Use local labels instead of hardcoded names, so we can theoretically compile with unrolled loops. --- qscale.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qscale.c b/qscale.c index 0f9598f..5c5ee09 100644 --- a/qscale.c +++ b/qscale.c @@ -108,14 +108,14 @@ void hscale(float *pix, unsigned char *npix, unsigned w, unsigned h, unsigned nw asm ( "pxor %1, %1 \n" "xor %2, %2 \n" - ".lbl2: \n" + "0: \n" "movups (%4,%2),%%xmm1 \n" "movups (%3,%2),%%xmm2 \n" "mulps %%xmm2,%%xmm1 \n" "addps %%xmm1,%1 \n" "add $16,%2 \n" "dec %5 \n" - "jnz .lbl2 \n" + "jnz 0b \n" "haddps %1,%1 \n" "haddps %1,%1 \n" "maxss %6,%1 \n" @@ -231,7 +231,7 @@ void vscale(unsigned char *pix, float *npix, unsigned w, unsigned h, unsigned nh "pxor %%xmm3, %%xmm3 \n" /* main loop */ - ".lbl: \n" + "0: \n" /* a zero is useful during unpacking */ "pxor %%xmm4, %%xmm4 \n" @@ -290,7 +290,7 @@ void vscale(unsigned char *pix, float *npix, unsigned w, unsigned h, unsigned nh "add $4, %2 \n" "add %3, %0 \n" "dec %1 \n" - "jnz .lbl \n" + "jnz 0b \n" /* store the values */ "movaps %%xmm0, (%4) \n" -- 2.39.2