From b701179cbdb851325ad07bfbce75c768c6bcb9ee Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 1 Oct 2017 18:55:35 +0200 Subject: [PATCH] src/*.c, wscript: remove trailing spaces --- src/cvec.c | 2 +- src/fvec.c | 4 ++-- src/mathutils.c | 2 +- src/spectral/fft.c | 4 ++-- wscript | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cvec.c b/src/cvec.c index 927e9cf1..76755da5 100644 --- a/src/cvec.c +++ b/src/cvec.c @@ -116,7 +116,7 @@ void cvec_norm_zeros(cvec_t *s) { aubio_ippsZero(s->norm, (int)s->length); #elif defined(HAVE_MEMCPY_HACKS) memset(s->norm, 0, s->length * sizeof(smpl_t)); -#else +#else cvec_norm_set_all (s, 0.); #endif } diff --git a/src/fvec.c b/src/fvec.c index f69b1eff..d356f81a 100644 --- a/src/fvec.c +++ b/src/fvec.c @@ -102,7 +102,7 @@ void fvec_weight(fvec_t *s, const fvec_t *weight) { uint_t length = MIN(s->length, weight->length); #if defined(HAVE_INTEL_IPP) aubio_ippsMul(s->data, weight->data, s->data, (int)length); -#elif defined(HAVE_ACCELERATE) +#elif defined(HAVE_ACCELERATE) aubio_vDSP_vmul( s->data, 1, weight->data, 1, s->data, 1, length ); #else uint_t j; @@ -116,7 +116,7 @@ void fvec_weighted_copy(const fvec_t *in, const fvec_t *weight, fvec_t *out) { uint_t length = MIN(in->length, MIN(out->length, weight->length)); #if defined(HAVE_INTEL_IPP) aubio_ippsMul(in->data, weight->data, out->data, (int)length); -#elif defined(HAVE_ACCELERATE) +#elif defined(HAVE_ACCELERATE) aubio_vDSP_vmul(in->data, 1, weight->data, 1, out->data, 1, length); #else uint_t j; diff --git a/src/mathutils.c b/src/mathutils.c index 44b02112..ef7b0dec 100644 --- a/src/mathutils.c +++ b/src/mathutils.c @@ -588,7 +588,7 @@ aubio_next_power_of_two (uint_t a) uint_t aubio_power_of_two_order (uint_t a) { - int order = 0; + int order = 0; int temp = aubio_next_power_of_two(a); while (temp >>= 1) { ++order; diff --git a/src/spectral/fft.c b/src/spectral/fft.c index 7d5b84e3..0ca467c8 100644 --- a/src/spectral/fft.c +++ b/src/spectral/fft.c @@ -156,7 +156,7 @@ struct _aubio_fft_t { aubio_FFTSetup fftSetup; aubio_DSPSplitComplex spec; smpl_t *in, *out; - + #elif defined HAVE_INTEL_IPP // using Intel IPP smpl_t *in, *out; Ipp8u* memSpec; @@ -222,7 +222,7 @@ aubio_fft_t * new_aubio_fft (uint_t winsize) { #elif defined HAVE_INTEL_IPP // using Intel IPP const IppHintAlgorithm qualityHint = ippAlgHintAccurate; // OR ippAlgHintFast; - const int flags = IPP_FFT_NODIV_BY_ANY; // we're scaling manually afterwards + const int flags = IPP_FFT_NODIV_BY_ANY; // we're scaling manually afterwards int order = aubio_power_of_two_order(winsize); int sizeSpec, sizeInit, sizeBuffer; IppStatus status; diff --git a/wscript b/wscript index 8c65ef91..9e0810ba 100644 --- a/wscript +++ b/wscript @@ -289,7 +289,7 @@ def configure(ctx): ctx.check(header_name='complex.h') else: ctx.msg('Checking if complex.h is enabled', 'no') - + # check for Intel IPP if (ctx.options.enable_intelipp != False): if (ctx.check(header_name=['ippcore.h', 'ippvm.h', 'ipps.h'], mandatory = False) and @@ -301,7 +301,7 @@ def configure(ctx): ctx.define('_IPP_SEQUENTIAL_STATIC', 1) else: ctx.msg('Checking if Intel IPP is available', 'no') - + # check for fftw3 if (ctx.options.enable_fftw3 != False or ctx.options.enable_fftw3f != False): # one of fftwf or fftw3f -- 2.11.0