62 lines
1.2 KiB
C
62 lines
1.2 KiB
C
// lasp_config.h
|
|
//
|
|
// Author: J.A. de Jong - ASCEE
|
|
//
|
|
// Description: Basic configuration compiler macro definitions, coming from
|
|
// cmake configuration. The file is configured using the configure_file()
|
|
// cmake macro.
|
|
#pragma once
|
|
#ifndef LASP_CONFIG_H
|
|
#define LASP_CONFIG_H
|
|
|
|
/* Debug flag */
|
|
#cmakedefine01 LASP_DEBUG
|
|
|
|
|
|
#if LASP_DEBUG == 1
|
|
#define TRACER 1
|
|
#define TRACERNAME @LASP_TRACERNAME@
|
|
#else
|
|
#define TRACER 0
|
|
#endif
|
|
|
|
|
|
/* Type of fft backend */
|
|
#define FFTW 1
|
|
#define FFTPack 2
|
|
#define None 0
|
|
|
|
#cmakedefine LASP_FFT_BACKEND @LASP_FFT_BACKEND@
|
|
#cmakedefine01 LASP_HAS_RTAUDIO
|
|
#cmakedefine01 LASP_HAS_PORTAUDIO
|
|
#cmakedefine01 LASP_HAS_ULDAQ
|
|
#cmakedefine01 LASP_DOUBLE_PRECISION
|
|
#cmakedefine01 LASP_USE_BLAS
|
|
|
|
|
|
/* Single / double precision */
|
|
#ifdef LASP_DOUBLE_PRECISION
|
|
#define LASP_FLOAT_SIZE 64
|
|
#else
|
|
#define LASP_FLOAT_SIZE 32
|
|
#endif
|
|
|
|
/* Serial / parallel computation */
|
|
#cmakedefine LASP_PARALLEL
|
|
#ifdef LASP_PARALLEL
|
|
#cmakedefine LASP_MAX_NUM_THREADS @LASP_MAX_NUM_THREADS@
|
|
#endif // LASP_PARALLEL
|
|
|
|
/* Audio-specific */
|
|
#cmakedefine LASP_MAX_NUM_CHANNELS @LASP_MAX_NUM_CHANNELS@
|
|
|
|
/* For FFT's */
|
|
#cmakedefine LASP_MAX_NFFT @LASP_MAX_NFFT@
|
|
|
|
/* Platform-specific */
|
|
#ifdef _WIN32
|
|
#define MS_WIN64
|
|
#endif
|
|
|
|
#endif // LASP_CONFIG_H
|