2021-09-14 18:05:42 +00:00
|
|
|
// 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
|
2022-05-23 15:26:29 +00:00
|
|
|
|
|
|
|
|
2021-09-14 18:05:42 +00:00
|
|
|
#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
|
2022-05-23 15:26:29 +00:00
|
|
|
|
2021-09-14 18:05:42 +00:00
|
|
|
#cmakedefine LASP_FFT_BACKEND @LASP_FFT_BACKEND@
|
2022-05-23 15:26:29 +00:00
|
|
|
#cmakedefine01 LASP_HAS_RTAUDIO
|
2023-06-14 19:23:53 +00:00
|
|
|
#cmakedefine01 LASP_HAS_PORTAUDIO
|
2022-05-23 15:26:29 +00:00
|
|
|
#cmakedefine01 LASP_HAS_ULDAQ
|
2021-09-14 18:05:42 +00:00
|
|
|
#cmakedefine01 LASP_DOUBLE_PRECISION
|
|
|
|
#cmakedefine01 LASP_USE_BLAS
|
|
|
|
|
2022-08-01 15:26:22 +00:00
|
|
|
|
2021-09-14 18:05:42 +00:00
|
|
|
/* Single / double precision */
|
|
|
|
#ifdef LASP_DOUBLE_PRECISION
|
2021-10-04 13:53:22 +00:00
|
|
|
#define LASP_FLOAT_SIZE 64
|
2021-09-14 18:05:42 +00:00
|
|
|
#else
|
2021-10-04 13:53:22 +00:00
|
|
|
#define LASP_FLOAT_SIZE 32
|
2021-09-14 18:05:42 +00:00
|
|
|
#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@
|
|
|
|
|
2022-10-05 09:27:46 +00:00
|
|
|
/* For FFT's */
|
|
|
|
#cmakedefine LASP_MAX_NFFT @LASP_MAX_NFFT@
|
|
|
|
|
2021-09-14 18:05:42 +00:00
|
|
|
/* Platform-specific */
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define MS_WIN64
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // LASP_CONFIG_H
|