summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-08-19 15:56:44 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-08-20 11:31:03 +0200
commita98fa950d2f04e2ba4d4a470296a081e1050f76d (patch)
tree582170e357128a3b357c214b47e21c37175e5e36 /src/pulsecore
parent601e5f1867065912e1740e2408a948ca818f6c59 (diff)
svolume: remove unneeded compare
We don't need the compare because the sub operation already set the right flags for us.
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/svolume_mmx.c1
-rw-r--r--src/pulsecore/svolume_sse.c3
2 files changed, 1 insertions, 3 deletions
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) \