mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
build-sys: Use #ifdef with HAVE_FAST_64BIT_OPERATIONS
The define is made conditionally. Reported by: Kamil Rytarowski <n54@gmx.com>
This commit is contained in:
parent
c3c4937b4f
commit
f8c69de418
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ void pa_deinterleave(const void *src, void *dst[], unsigned channels, size_t ss,
|
|||
void pa_sample_clamp(pa_sample_format_t format, void *dst, size_t dstr, const void *src, size_t sstr, unsigned n);
|
||||
|
||||
static inline int32_t pa_mult_s16_volume(int16_t v, int32_t cv) {
|
||||
#if HAVE_FAST_64BIT_OPERATIONS
|
||||
#ifdef HAVE_FAST_64BIT_OPERATIONS
|
||||
/* Multiply with 64 bit integers on 64 bit platforms */
|
||||
return (v * (int64_t) cv) >> 16;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
|
|||
if (!getenv("MAKE_CHECK"))
|
||||
pa_log_set_level(PA_LOG_DEBUG);
|
||||
|
||||
#if HAVE_FAST_64BIT_OPERATIONS
|
||||
#ifdef HAVE_FAST_64BIT_OPERATIONS
|
||||
pa_log_debug("Detected CPU with fast 64-bit operations.");
|
||||
#else
|
||||
pa_log_debug("Not detected CPU with fast 64-bit operations.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue