summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Raghavan <git@arunraghavan.net>2016-01-15 16:09:49 +0530
committerArun Raghavan <git@arunraghavan.net>2016-01-15 16:10:46 +0530
commitf8c69de418f00c33f011d6bc96b821f36e3f3149 (patch)
treeba65ee1d849d5a18b28d68f6979a2b37210bb008 /src
parentc3c4937b4f3bd83a34864ec0a89b7b9113778da8 (diff)
build-sys: Use #ifdef with HAVE_FAST_64BIT_OPERATIONS
The define is made conditionally. Reported by: Kamil Rytarowski <n54@gmx.com>
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/sample-util.h2
-rw-r--r--src/tests/mult-s16-test.c2
2 files changed, 2 insertions, 2 deletions
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.");