From: Wim Taymans Date: Wed, 19 Aug 2009 13:56:44 +0000 (+0200) Subject: svolume: remove unneeded compare X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/a98fa950d2f04e2ba4d4a470296a081e1050f76d?hp=601e5f1867065912e1740e2408a948ca818f6c59 svolume: remove unneeded compare We don't need the compare because the sub operation already set the right flags for us. --- diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c index ad539278..5243b447 100644 --- a/src/pulsecore/svolume_mmx.c +++ b/src/pulsecore/svolume_mmx.c @@ -72,7 +72,6 @@ " add "#a", %3 \n\t" \ " mov %3, %4 \n\t" \ " sub "#b", %4 \n\t" \ - " cmp "#b", %3 \n\t" \ " cmovae %4, %3 \n\t" /* swap 16 bits */ diff --git a/src/pulsecore/svolume_sse.c b/src/pulsecore/svolume_sse.c index b0a6e0dd..98f828c0 100644 --- a/src/pulsecore/svolume_sse.c +++ b/src/pulsecore/svolume_sse.c @@ -52,8 +52,7 @@ " add "#a", %3 \n\t" /* channel += inc */ \ " mov %3, %4 \n\t" \ " sub "#b", %4 \n\t" /* tmp = channel - channels */ \ - " cmp "#b", %3 \n\t" /* if (channel >= channels) */ \ - " cmovae %4, %3 \n\t" /* channel = tmp */ + " cmovae %4, %3 \n\t" /* if (tmp >= 0) channel = tmp */ /* swap 16 bits */ #define SWAP_16(s) \