From af3d732a32928155d6bf8e6991f03d29002206db Mon Sep 17 00:00:00 2001 From: dos-reis Date: Wed, 27 Nov 2013 02:18:25 +0000 Subject: * include/storage.H (Arena::allocate): Adjust spelling of alignment query operator. (Arena::Arena): Likewise. (HashTableEntry): Adjust spelling of alignment specifier. --- src/ChangeLog | 7 +++++++ src/include/storage.H | 6 ++---- src/utils/hash-table.H | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ChangeLog b/src/ChangeLog index c0c25a74..5e1f75ba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-11-26 Gabriel Dos Reis + + * include/storage.H (Arena::allocate): Adjust spelling of + alignment query operator. + (Arena::Arena): Likewise. + (HashTableEntry): Adjust spelling of alignment specifier. + 2013-11-03 Gabriel Dos Reis * include/Charset.H (OpenAxiom): New. diff --git a/src/include/storage.H b/src/include/storage.H index afd5f51f..e414dec2 100644 --- a/src/include/storage.H +++ b/src/include/storage.H @@ -229,8 +229,7 @@ namespace OpenAxiom { if (BlockStorage::room(store) < sz) { // Not enough room left. Make sure we allocate storage // at least as big as the current. - Handle* h = acquire(std::max(n, object_count(store)), - openaxiom_alignment(T)); + Handle* h = acquire(std::max(n, object_count(store)), alignof(T)); previous(h) = store; store = h; } @@ -239,8 +238,7 @@ namespace OpenAxiom { template Arena::Arena(size_t n) - : store(BlockStorage::acquire(n * sizeof (T), - openaxiom_alignment (T))) + : store(BlockStorage::acquire(n * sizeof (T), alignof (T))) { } template diff --git a/src/utils/hash-table.H b/src/utils/hash-table.H index 6d9da3d7..d74c7760 100644 --- a/src/utils/hash-table.H +++ b/src/utils/hash-table.H @@ -49,7 +49,7 @@ namespace OpenAxiom { // so that an instance of it can be used directly as a VM value. // See for more description. template - struct openaxiom_alignas(8) HashTableEntry : T { + struct alignas(8) HashTableEntry : T { HashTableEntry* chain; // previous item in the same bucket chain size_t hash; // hash code of stored data }; -- cgit v1.2.3