MCPcopy Create free account
hub / github.com/PX4/eigen / test_first_aligned_helper

Function test_first_aligned_helper

test/first_aligned.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12template<typename Scalar>
13void test_first_aligned_helper(Scalar *array, int size)
14{
15 const int packet_size = sizeof(Scalar) * internal::packet_traits<Scalar>::size;
16 VERIFY(((size_t(array) + sizeof(Scalar) * internal::first_default_aligned(array, size)) % packet_size) == 0);
17}
18
19template<typename Scalar>
20void test_none_aligned_helper(Scalar *array, int size)

Callers 1

test_first_alignedFunction · 0.85

Calls 1

first_default_alignedFunction · 0.50

Tested by

no test coverage detected