From f8c69de418f00c33f011d6bc96b821f36e3f3149 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 15 Jan 2016 16:09:49 +0530 Subject: build-sys: Use #ifdef with HAVE_FAST_64BIT_OPERATIONS The define is made conditionally. Reported by: Kamil Rytarowski --- src/pulsecore/sample-util.h | 2 +- src/tests/mult-s16-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pulsecore/sample-util.h b/src/pulsecore/sample-util.h index 3d53ebe31..0732e8dc7 100644 --- a/src/pulsecore/sample-util.h +++ b/src/pulsecore/sample-util.h @@ -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 diff --git a/src/tests/mult-s16-test.c b/src/tests/mult-s16-test.c index 845e61c07..7340d8592 100644 --- a/src/tests/mult-s16-test.c +++ b/src/tests/mult-s16-test.c @@ -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."); -- cgit v1.2.3