aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 14:39:48 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 14:39:48 +0100
commitd56aa8866003d1ebd3cdc5c0c485f2024eb0dc68 (patch)
treef4842be00c097efd924e211c5fc55bd018d92df4 /src
parent35a04ccf07bebceb7ae42395491283c021b966eb (diff)
downloadmpd-d56aa8866003d1ebd3cdc5c0c485f2024eb0dc68.tar.gz
mpd-d56aa8866003d1ebd3cdc5c0c485f2024eb0dc68.tar.xz
mpd-d56aa8866003d1ebd3cdc5c0c485f2024eb0dc68.zip
pcm_volume: use #ifdef instead of #if __i386__
Diffstat (limited to 'src')
-rw-r--r--src/pcm_volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm_volume.c b/src/pcm_volume.c
index 01e979c70..2a94c1890 100644
--- a/src/pcm_volume.c
+++ b/src/pcm_volume.c
@@ -59,7 +59,7 @@ pcm_volume_change_16(int16_t *buffer, unsigned num_samples, int volume)
}
}
-#if __i386__
+#ifdef __i386__
/**
* Optimized volume function for i386. Use the EDX:EAX 2*32 bit
* multiplication result instead of emulating 64 bit multiplication.
@@ -94,7 +94,7 @@ static void
pcm_volume_change_24(int32_t *buffer, unsigned num_samples, int volume)
{
while (num_samples > 0) {
-#if __i386__
+#ifdef __i386__
/* assembly version for i386 */
int32_t sample = *buffer;