|
| 1 | +/* |
| 2 | + * Copyright (c) 2025, Henrik Hose |
| 3 | + * Copyright (c) 2025, Niklas Hauser |
| 4 | + * |
| 5 | + * This file is part of the modm project. |
| 6 | + * |
| 7 | + * This Source Code Form is subject to the terms of the Mozilla Public |
| 8 | + * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 9 | + * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 10 | + */ |
| 11 | +// ---------------------------------------------------------------------------- |
| 12 | + |
| 13 | +#pragma once |
| 14 | + |
| 15 | +#if __has_include(<eigen_conf_local.h>) |
| 16 | +# include <eigen_conf_local.h> |
| 17 | +#endif |
| 18 | + |
| 19 | +#define EIGEN_NO_IO |
| 20 | +#define EIGEN_DONT_VECTORIZE |
| 21 | +#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT |
| 22 | +#define EIGEN_DONT_PARALLELIZE |
| 23 | + |
| 24 | +#define EIGEN_MALLOC_ALREADY_ALIGNED 1 |
| 25 | +#ifndef EIGEN_MAX_ALIGN_BYTES |
| 26 | +#define EIGEN_MAX_ALIGN_BYTES 0 |
| 27 | +#endif |
| 28 | +#ifndef EIGEN_MAX_STATIC_ALIGN_BYTES |
| 29 | +#define EIGEN_MAX_STATIC_ALIGN_BYTES 4 |
| 30 | +#endif |
| 31 | +%# |
| 32 | +%% if eigen_no_malloc |
| 33 | +#define EIGEN_NO_MALLOC |
| 34 | +%% endif |
| 35 | +#ifndef EIGEN_STACK_ALLOCATION_LIMIT |
| 36 | +#define EIGEN_STACK_ALLOCATION_LIMIT 1024 |
| 37 | +#endif |
| 38 | + |
| 39 | +#ifndef MODM_DEBUG_BUILD |
| 40 | +#define EIGEN_NO_DEBUG |
| 41 | +#endif |
| 42 | + |
| 43 | +#include <modm/architecture/interface/assert.hpp> |
| 44 | + |
| 45 | +#define eigen_assert(cond) \ |
| 46 | + modm_assert(cond, "eigen", __FILE__ ":" MODM_STRINGIFY(__LINE__) " -> \"" #cond "\"") |
| 47 | + |
| 48 | +#include "Version_orig" |
0 commit comments