Skip to content

Commit 2a6d963

Browse files
committed
core: move EIGENPY_DEFAULT_ALIGN_BYTES to a common place
1 parent 8bf3777 commit 2a6d963

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/eigenpy/fwd.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2020 CNRS INRIA
2+
* Copyright 2014-2023 CNRS INRIA
33
*/
44

55
#ifndef __eigenpy_fwd_hpp__
@@ -28,6 +28,8 @@
2828
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned
2929
#endif
3030

31+
#define EIGENPY_DEFAULT_ALIGN_BYTES EIGEN_DEFAULT_ALIGN_BYTES
32+
3133
#define EIGENPY_NO_ALIGNMENT_VALUE Eigen::Unaligned
3234

3335
#define EIGENPY_UNUSED_VARIABLE(var) (void)(var)

include/eigenpy/memory.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ static inline void _Py_SET_SIZE(PyVarObject* ob, Py_ssize_t size) {
1515
#define Py_SET_SIZE(ob, size) _Py_SET_SIZE((PyVarObject*)(ob), size)
1616
#endif
1717

18-
#if EIGEN_DEFAULT_ALIGN_BYTES > 16
19-
#define EIGENPY_DEFAULT_ALIGN_BYTES EIGEN_DEFAULT_ALIGN_BYTES
20-
#else
21-
#define EIGENPY_DEFAULT_ALIGN_BYTES 16
22-
#endif
23-
2418
/**
2519
* This section contains a convenience MACRO which allows an easy specialization
2620
* of Boost Python Object allocator for struct data types containing Eigen

0 commit comments

Comments
 (0)