Introduce and use AlignedAllocationPolicy
commit517baaca7e13168750e7dd32794615442e25c646
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 3 Jul 2017 17:40:10 +0000 (3 19:40 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 3 Oct 2017 02:15:02 +0000 (3 04:15 +0200)
treed8b2d369fb2dbd7076cead84cb803cdc0986a74e
parente22ea9d7b6efabad7bd0d46ae883bf438baabab4
Introduce and use AlignedAllocationPolicy

This permits the allocators to be specialised with a policy class that
can vary (and report on) the alignment.

Change-Id: I875548ac325edcf07074ad35f9d90cdf561ea750
src/gromacs/ewald/pme-spline-work.cpp
src/gromacs/utility/alignedallocator.cpp
src/gromacs/utility/alignedallocator.h
src/gromacs/utility/allocator.h [copied from src/gromacs/utility/alignedallocator.h with 70% similarity]
src/gromacs/utility/smalloc.cpp
src/gromacs/utility/tests/alignedallocator.cpp