mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +00:00
committed by
Christian Helmuth
parent
500893e7ec
commit
3906568908
@ -55,6 +55,7 @@ class Genode::Bit_allocator
|
|||||||
|
|
||||||
Bit_allocator() : _next(0) {
|
Bit_allocator() : _next(0) {
|
||||||
_reserve(BITS, BITS_ALIGNED - BITS); }
|
_reserve(BITS, BITS_ALIGNED - BITS); }
|
||||||
|
Bit_allocator(const Bit_allocator & o) : _next(0), _array(o._array) { }
|
||||||
|
|
||||||
addr_t alloc(size_t const num_log2 = 0)
|
addr_t alloc(size_t const num_log2 = 0)
|
||||||
{
|
{
|
||||||
|
@ -149,6 +149,8 @@ class Genode::Bit_array : public Bit_array_base
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
Bit_array() : Bit_array_base(BITS, _array, true) { }
|
Bit_array() : Bit_array_base(BITS, _array, true) { }
|
||||||
|
Bit_array(const Bit_array & o) : Bit_array_base(BITS, _array, false) {
|
||||||
|
memcpy(&_array, &o._array, sizeof(_array)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _INCLUDE__UTIL__BIT_ARRAY_H_ */
|
#endif /* _INCLUDE__UTIL__BIT_ARRAY_H_ */
|
||||||
|
Reference in New Issue
Block a user