mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 07:14:12 +08:00
minor cleanup
This commit is contained in:
parent
7dd81aad74
commit
6c89fd4df0
@ -98,13 +98,13 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
message("Enabling SSE4.2 in tests/examples")
|
message("Enabling SSE4.2 in tests/examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(EIGEN_TEST_ALTIVEC "Enable/Disable altivec in tests/examples" OFF)
|
option(EIGEN_TEST_ALTIVEC "Enable/Disable AltiVec in tests/examples" OFF)
|
||||||
if(EIGEN_TEST_ALTIVEC)
|
if(EIGEN_TEST_ALTIVEC)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -mabi=altivec")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -mabi=altivec")
|
||||||
message("Enabling AltiVec in tests/examples")
|
message("Enabling AltiVec in tests/examples")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(EIGEN_TEST_NEON "Enable/Disable altivec in tests/examples" OFF)
|
option(EIGEN_TEST_NEON "Enable/Disable Neon in tests/examples" OFF)
|
||||||
if(EIGEN_TEST_NEON)
|
if(EIGEN_TEST_NEON)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8")
|
||||||
message("Enabling NEON in tests/examples")
|
message("Enabling NEON in tests/examples")
|
||||||
|
@ -90,12 +90,11 @@ class ei_compute_matrix_flags
|
|||||||
is_dynamic_size_storage = MaxRows==Dynamic || MaxCols==Dynamic,
|
is_dynamic_size_storage = MaxRows==Dynamic || MaxCols==Dynamic,
|
||||||
#if !defined(__ARM_NEON__)
|
#if !defined(__ARM_NEON__)
|
||||||
is_fixed_size_aligned
|
is_fixed_size_aligned
|
||||||
= (!is_dynamic_size_storage)
|
= (!is_dynamic_size_storage) && (((MaxCols*MaxRows) % ei_packet_traits<Scalar>::size) == 0),
|
||||||
#else
|
#else
|
||||||
// FIXME!!! This is a hack because ARM gcc does not honour __attribute__((aligned(16))) properly
|
// FIXME!!! This is a hack because ARM gcc does not honour __attribute__((aligned(16))) properly
|
||||||
is_fixed_size_aligned = 0
|
is_fixed_size_aligned = 0,
|
||||||
#endif
|
#endif
|
||||||
&& (((MaxCols*MaxRows) % ei_packet_traits<Scalar>::size) == 0),
|
|
||||||
aligned_bit = (((Options&DontAlign)==0)
|
aligned_bit = (((Options&DontAlign)==0)
|
||||||
&& (is_dynamic_size_storage || is_fixed_size_aligned))
|
&& (is_dynamic_size_storage || is_fixed_size_aligned))
|
||||||
? AlignedBit : 0,
|
? AlignedBit : 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user