pcm_volume: use #ifdef instead of #if __i386__

This commit is contained in:
Max Kellermann 2009-03-14 14:39:48 +01:00
parent 35a04ccf07
commit d56aa88660
1 changed files with 2 additions and 2 deletions

View File

@ -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;