Add padded allocator for aligned and padded vectors. (#460)
Padded vectors with run-time padding/alignment guarantees will form the basis of the storage class for the new CPU and SIMD generated mechanisms. * Add `padded_allocator` that aligns and pads allocations. * Make microbenchmark for `default_construct_adaptor` that overrides the allocator construct() to default- instead of value-initialization on values. * Add `with_instrumented_malloc` class for tracking malloc, realloc, etc. calls. * Add unit tests for `padded_allocator`.
Showing
- src/util/padded_alloc.hpp 95 additions, 0 deletionssrc/util/padded_alloc.hpp
- tests/ubench/CMakeLists.txt 1 addition, 0 deletionstests/ubench/CMakeLists.txt
- tests/ubench/README.md 85 additions, 0 deletionstests/ubench/README.md
- tests/ubench/default_construct.cpp 109 additions, 0 deletionstests/ubench/default_construct.cpp
- tests/ubench/event_binning.cpp 1 addition, 0 deletionstests/ubench/event_binning.cpp
- tests/unit/CMakeLists.txt 1 addition, 0 deletionstests/unit/CMakeLists.txt
- tests/unit/instrument_malloc.hpp 138 additions, 0 deletionstests/unit/instrument_malloc.hpp
- tests/unit/test_padded.cpp 159 additions, 0 deletionstests/unit/test_padded.cpp
src/util/padded_alloc.hpp
0 → 100644
tests/ubench/default_construct.cpp
0 → 100644
tests/unit/instrument_malloc.hpp
0 → 100644
tests/unit/test_padded.cpp
0 → 100644
Please register or sign in to comment