Changeset 44e9eeb5 for src/aubio_priv.h


Ignore:
Timestamp:
Sep 5, 2015, 9:14:47 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
b8c50c3
Parents:
f45dd12
Message:

src/fvec.c: move alias to aubio_priv.h, add cblas copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rf45dd12 r44e9eeb5  
    6363#ifdef HAVE_LIMITS_H
    6464#include <limits.h> // for CHAR_BIT, in C99 standard
     65#endif
     66
     67#ifdef HAVE_ACCELERATE
     68#define HAVE_ATLAS 1
     69#include <Accelerate/Accelerate.h>
     70#elif HAVE_ATLAS_CBLAS_H
     71#define HAVE_ATLAS 1
     72#include <atlas/cblas.h>
     73#else
     74#undef HAVE_ATLAS
     75#endif
     76
     77#ifdef HAVE_ACCELERATE
     78#include <Accelerate/Accelerate.h>
     79#define aubio_vDSP_mmov       vDSP_mmov
     80#define aubio_vDSP_vmul       vDSP_vmul
     81#define aubio_vDSP_vfill      vDSP_vfill
     82#else /* HAVE_AUBIO_DOUBLE */
     83#define aubio_vDSP_mmov       vDSP_mmovD
     84#define aubio_vDSP_vmul       vDSP_vmulD
     85#define aubio_vDSP_vfill      vDSP_vfillD
     86#endif /* HAVE_AUBIO_DOUBLE */
     87#endif
     88
     89#ifdef HAVE_ATLAS
     90#if !HAVE_AUBIO_DOUBLE
     91#define aubio_catlas_set      catlas_sset
     92#define aubio_cblas_copy      cblas_scopy
     93#else /* HAVE_AUBIO_DOUBLE */
     94#define aubio_catlas_set      catlas_dset
     95#define aubio_cblas_copy      cblas_dcopy
     96#endif /* HAVE_AUBIO_DOUBLE */
     97
     98#if !defined(HAVE_MEMCPY_HACKS) && !defined(HAVE_ACCELERATE) && !defined(HAVE_ATLAS)
     99#define HAVE_NOOPT 1
     100#else
     101#undef HAVE_NOOPT
    65102#endif
    66103
Note: See TracChangeset for help on using the changeset viewer.