[pulseaudio-commits] src/pulsecore src/tests

Arun Raghavan arun at kemper.freedesktop.org
Fri Jan 15 02:42:24 PST 2016


 src/pulsecore/sample-util.h |    2 +-
 src/tests/mult-s16-test.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f8c69de418f00c33f011d6bc96b821f36e3f3149
Author: Arun Raghavan <git at arunraghavan.net>
Date:   Fri Jan 15 16:09:49 2016 +0530

    build-sys: Use #ifdef with HAVE_FAST_64BIT_OPERATIONS
    
    The define is made conditionally.
    
    Reported by: Kamil Rytarowski <n54 at gmx.com>

diff --git a/src/pulsecore/sample-util.h b/src/pulsecore/sample-util.h
index 3d53ebe..0732e8d 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 845e61c..7340d85 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.");



More information about the pulseaudio-commits mailing list