mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
Fix #defines for Debian GNU/kFreeBSD
Because debian does not run with the freebsd libc, but rather uses the GNU one, it chose to not define __FreeBSD__, but rather __FreeBSD_kernel__. Use the alternative when the functionality tested is for kernel features, and keep the __FreeBSD__ one when using freebsd libc headers. If this patch is applied, debian could drop all the current patches when importing 6.0 :)
This commit is contained in:
parent
5cae5fc848
commit
13a3daa928
6 changed files with 19 additions and 15 deletions
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "sample-util.h"
|
||||
|
||||
#if (!defined(__FreeBSD__) && defined (__i386__)) || defined (__amd64__)
|
||||
#if (!defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && defined (__i386__)) || defined (__amd64__)
|
||||
/* in s: 2 int16_t samples
|
||||
* in v: 2 int32_t volumes, fixed point 16:16
|
||||
* out s: contains scaled and clamped int16_t samples.
|
||||
|
|
@ -240,15 +240,15 @@ static void pa_volume_s16re_mmx(int16_t *samples, const int32_t *volumes, unsign
|
|||
);
|
||||
}
|
||||
|
||||
#endif /* (!defined(__FreeBSD__) && defined (__i386__)) || defined (__amd64__) */
|
||||
#endif /* (!defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && defined (__i386__)) || defined (__amd64__) */
|
||||
|
||||
void pa_volume_func_init_mmx(pa_cpu_x86_flag_t flags) {
|
||||
#if (!defined(__FreeBSD__) && defined (__i386__)) || defined (__amd64__)
|
||||
#if (!defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && defined (__i386__)) || defined (__amd64__)
|
||||
if ((flags & PA_CPU_X86_MMX) && (flags & PA_CPU_X86_CMOV)) {
|
||||
pa_log_info("Initialising MMX optimized volume functions.");
|
||||
|
||||
pa_set_volume_func(PA_SAMPLE_S16NE, (pa_do_volume_func_t) pa_volume_s16ne_mmx);
|
||||
pa_set_volume_func(PA_SAMPLE_S16RE, (pa_do_volume_func_t) pa_volume_s16re_mmx);
|
||||
}
|
||||
#endif /* (!defined(__FreeBSD__) && defined (__i386__)) || defined (__amd64__) */
|
||||
#endif /* (!defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && defined (__i386__)) || defined (__amd64__) */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue