1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

more fixes to expose precision selection also to C code. should work now for PANPHASIA_HO

This commit is contained in:
Oliver Hahn 2021-06-01 21:57:18 +02:00
parent c3e647ef59
commit f3d9c25e1e
2 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,8 @@
// between single/double precision FTs // between single/double precision FTs
// include CMake controlled configuration settings // include CMake controlled configuration settings
#pragma once
#include "cmake_config.hh"
#if defined(USE_PRECISION_DOUBLE) #if defined(USE_PRECISION_DOUBLE)
#define FOURIER_DOUBLE #define FOURIER_DOUBLE

View file

@ -1,8 +1,10 @@
#pragma once #pragma once
constexpr char CMAKE_BUILDTYPE_STR[] = "${CMAKE_BUILD_TYPE}";
#define USE_PRECISION_${CODE_PRECISION} #define USE_PRECISION_${CODE_PRECISION}
#ifdef __cplusplus
constexpr char CMAKE_BUILDTYPE_STR[] = "${CMAKE_BUILD_TYPE}";
#if defined(USE_PRECISION_FLOAT) #if defined(USE_PRECISION_FLOAT)
constexpr char CMAKE_PRECISION_STR[] = "single"; constexpr char CMAKE_PRECISION_STR[] = "single";
#elif defined(USE_PRECISION_DOUBLE) #elif defined(USE_PRECISION_DOUBLE)
@ -31,4 +33,6 @@ extern "C"
extern const char *GIT_TAG; extern const char *GIT_TAG;
extern const char *GIT_REV; extern const char *GIT_REV;
extern const char *GIT_BRANCH; extern const char *GIT_BRANCH;
} }
#endif // __cplusplus