8151439: Inline the BitMap constructor
Reviewed-by: tschatzl, pliden, kbarrett
This commit is contained in:
parent
7419b91e7e
commit
48813d4d84
@ -29,12 +29,7 @@
|
|||||||
#include "utilities/bitMap.inline.hpp"
|
#include "utilities/bitMap.inline.hpp"
|
||||||
#include "utilities/copy.hpp"
|
#include "utilities/copy.hpp"
|
||||||
|
|
||||||
BitMap::BitMap(bm_word_t* map, idx_t size_in_bits) :
|
STATIC_ASSERT(sizeof(BitMap::bm_word_t) == BytesPerWord); // "Implementation assumption."
|
||||||
_map(map), _size(size_in_bits)
|
|
||||||
{
|
|
||||||
assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption.");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BitMap::BitMap(idx_t size_in_bits, bool in_resource_area) :
|
BitMap::BitMap(idx_t size_in_bits, bool in_resource_area) :
|
||||||
_map(NULL), _size(0)
|
_map(NULL), _size(0)
|
||||||
|
@ -116,7 +116,7 @@ class BitMap VALUE_OBJ_CLASS_SPEC {
|
|||||||
BitMap() : _map(NULL), _size(0) {}
|
BitMap() : _map(NULL), _size(0) {}
|
||||||
|
|
||||||
// Constructs a bitmap with the given map and size.
|
// Constructs a bitmap with the given map and size.
|
||||||
BitMap(bm_word_t* map, idx_t size_in_bits);
|
BitMap(bm_word_t* map, idx_t size_in_bits) :_map(map), _size(size_in_bits) {}
|
||||||
|
|
||||||
// Constructs an empty bitmap of the given size (that is, this clears the
|
// Constructs an empty bitmap of the given size (that is, this clears the
|
||||||
// new bitmap). Allocates the map array in resource area if
|
// new bitmap). Allocates the map array in resource area if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user