Changeset 4b943729 for src/mathutils.c


Ignore:
Timestamp:
Oct 1, 2017, 3:30:10 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
0ad2e17
Parents:
95f5c83
Message:

src/aubio_priv.h: define ipp aliases for single/double precision, use them in cvec and fvec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r95f5c83 r4b943729  
    161161  smpl_t tmp = 0.0;
    162162#if defined(HAVE_INTEL_IPP)
    163   #if HAVE_AUBIO_DOUBLE
    164     ippsMean_64f(s->data, (int)s->length, &tmp);
    165   #else
    166     ippsMean_32f(s->data, (int)s->length, &tmp, ippAlgHintFast);
    167   #endif
    168     return tmp;
     163  aubio_ippsMean(s->data, (int)s->length, &tmp, ippAlgHintFast);
     164  return tmp;
    169165#elif defined(HAVE_ACCELERATE)
    170166  aubio_vDSP_meanv(s->data, 1, &tmp, s->length);
     
    184180  smpl_t tmp = 0.0;
    185181#if defined(HAVE_INTEL_IPP)
    186   #if HAVE_AUBIO_DOUBLE
    187     ippsSum_64f(s->data, (int)s->length, &tmp);
    188   #else
    189     ippsSum_32f(s->data, (int)s->length, &tmp, ippAlgHintFast);
    190   #endif
     182  aubio_ippsSum(s->data, (int)s->length, &tmp, ippAlgHintFast);
    191183#elif defined(HAVE_ACCELERATE)
    192184  aubio_vDSP_sve(s->data, 1, &tmp, s->length);
     
    205197#if defined(HAVE_INTEL_IPP)
    206198  smpl_t tmp = 0.;
    207   #if HAVE_AUBIO_DOUBLE
    208     ippsMax_64f( s->data, (int)s->length, &tmp);
    209   #else
    210     ippsMax_32f( s->data, (int)s->length, &tmp);
    211 #endif
     199  aubio_ippsMax( s->data, (int)s->length, &tmp);
    212200#elif defined(HAVE_ACCELERATE)
    213201  smpl_t tmp = 0.;
     
    228216#if defined(HAVE_INTEL_IPP)
    229217  smpl_t tmp = 0.;
    230   #if HAVE_AUBIO_DOUBLE
    231     ippsMin_64f(s->data, (int)s->length, &tmp);
    232   #else
    233     ippsMin_32f(s->data, (int)s->length, &tmp);
    234 #endif
     218  aubio_ippsMin(s->data, (int)s->length, &tmp);
    235219#elif defined(HAVE_ACCELERATE)
    236220  smpl_t tmp = 0.;
Note: See TracChangeset for help on using the changeset viewer.