From ad0b85d795c67d6e7bf8a2e38ccb5e6241c07bf2 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 22 Jun 2023 10:03:07 +0200 Subject: [PATCH] Use alignas over attribute(aligned) --- src/dwarfs/block_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dwarfs/block_manager.cpp b/src/dwarfs/block_manager.cpp index 131e17e6..1473a374 100644 --- a/src/dwarfs/block_manager.cpp +++ b/src/dwarfs/block_manager.cpp @@ -160,7 +160,7 @@ constexpr uint64_t pow2ceil(uint64_t n) { * extremely cheap, so we can't afford e.g. using two hashes instead * of one. */ -class bloom_filter { +class alignas(64) bloom_filter { public: using bits_type = uint64_t; @@ -221,7 +221,7 @@ class bloom_filter { bits_type* bits_; size_t const index_mask_; size_t const size_; -} __attribute__((aligned(64))); +}; class active_block { private: