mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-15 07:16:13 -04:00
Use alignas over attribute(aligned)
This commit is contained in:
parent
af782743ea
commit
ad0b85d795
@ -160,7 +160,7 @@ constexpr uint64_t pow2ceil(uint64_t n) {
|
|||||||
* extremely cheap, so we can't afford e.g. using two hashes instead
|
* extremely cheap, so we can't afford e.g. using two hashes instead
|
||||||
* of one.
|
* of one.
|
||||||
*/
|
*/
|
||||||
class bloom_filter {
|
class alignas(64) bloom_filter {
|
||||||
public:
|
public:
|
||||||
using bits_type = uint64_t;
|
using bits_type = uint64_t;
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ class bloom_filter {
|
|||||||
bits_type* bits_;
|
bits_type* bits_;
|
||||||
size_t const index_mask_;
|
size_t const index_mask_;
|
||||||
size_t const size_;
|
size_t const size_;
|
||||||
} __attribute__((aligned(64)));
|
};
|
||||||
|
|
||||||
class active_block {
|
class active_block {
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user