1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
// @GENERATED_SOURCE@
#include <cstdlib>
#include <type_traits>
#include <dune/common/typetraits.hh>
#include <dune/common/debugalign.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/simd/test.hh>
#include <dune/common/test/debugalignsimdtest.hh>
template<class> struct RebindAccept : std::false_type {};
#cmake @template@
template<>
struct RebindAccept<Dune::AlignedNumber<@SCALAR@> > : std::true_type {};
#cmake @endtemplate@
int main(int argc, char **argv)
{
Dune::MPIHelper::instance(argc, argv);
Dune::Simd::UnitTest test;
using Rebinds = Dune::Simd::RebindList<
#cmake @template@
@SCALAR@,
#cmake @endtemplate@
Dune::Simd::EndMark>;
#cmake @template@
test.check<Dune::AlignedNumber<@SCALAR@>,
Rebinds, Dune::AlwaysFalse, RebindAccept>();
#cmake @endtemplate@
return test.good() ? EXIT_SUCCESS : EXIT_FAILURE;
}
|