ode-toolbox

ODE integration tools
git clone https://git.0xfab.ch/ode-toolbox.git
Log | Files | Refs | README | LICENSE

commit cba300ea58b404439851aee298bd36373480f1b6
parent 6c3e9d54b09fdc56b755dd2c0d11474f54362011
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date:   Mon,  1 Feb 2021 00:13:11 +0100

Default to _ALIGN_=16 if nothing else defined

Diffstat:
Minclude/common.h | 4++++
Mmeson.build | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/common.h b/include/common.h @@ -16,6 +16,10 @@ #define LOOPSCHED +#ifndef _ALIGN_ +#define _ALIGN_ 16 +#endif /* _ALIGN_ */ + #ifdef _FLOAT_PRECISION_ using Real = float; #else diff --git a/meson.build b/meson.build @@ -4,7 +4,7 @@ project('ode_toolbox', 'cpp', default_options: ['cpp_std=c++11', 'b_ndebug=if-release'] ) -cpp_args = ['-D_ALIGN_=16'] +cpp_args = [] if get_option('precision') == 'single' cpp_args += ['-D_FLOAT_PRECISION_'] endif