summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-09-28 09:50:26 +0200
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-10-08 15:16:41 +0530
commitd71a291721f6e61f8e874d4906ee012a3f5b2a63 (patch)
treee5ee3ee42d1b71b19fc6541b90ac949c2fb5f792
parent87f70c6a1d3504e34bbd9c53476f41adcebc1b8f (diff)
Make pulse build with clang again
The casts are not supported there.
-rw-r--r--src/pulsecore/svolume_mmx.c4
-rw-r--r--src/pulsecore/svolume_sse.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c
index ae2cf053..87d29e88 100644
--- a/src/pulsecore/svolume_mmx.c
+++ b/src/pulsecore/svolume_mmx.c
@@ -153,7 +153,7 @@ static void pa_volume_s16ne_mmx(int16_t *samples, int32_t *volumes, unsigned cha
: "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
#if defined (__i386__)
- : "m" ((pa_reg_x86)channels)
+ : "m" (channels)
#else
: "r" ((pa_reg_x86)channels)
#endif
@@ -232,7 +232,7 @@ static void pa_volume_s16re_mmx(int16_t *samples, int32_t *volumes, unsigned cha
: "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
#if defined (__i386__)
- : "m" ((pa_reg_x86)channels)
+ : "m" (channels)
#else
: "r" ((pa_reg_x86)channels)
#endif
diff --git a/src/pulsecore/svolume_sse.c b/src/pulsecore/svolume_sse.c
index 6a73270e..99a1adba 100644
--- a/src/pulsecore/svolume_sse.c
+++ b/src/pulsecore/svolume_sse.c
@@ -152,7 +152,7 @@ static void pa_volume_s16ne_sse2(int16_t *samples, int32_t *volumes, unsigned ch
: "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
#if defined (__i386__)
- : "m" ((pa_reg_x86)channels)
+ : "m" (channels)
#else
: "r" ((pa_reg_x86)channels)
#endif
@@ -244,7 +244,7 @@ static void pa_volume_s16re_sse2(int16_t *samples, int32_t *volumes, unsigned ch
: "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
#if defined (__i386__)
- : "m" ((pa_reg_x86)channels)
+ : "m" (channels)
#else
: "r" ((pa_reg_x86)channels)
#endif