mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
parent
7f170e492e
commit
da6b384e3a
@ -134,15 +134,12 @@ struct Genode::Register
|
||||
template <unsigned long _SHIFT, unsigned long _WIDTH>
|
||||
struct Bitfield
|
||||
{
|
||||
enum {
|
||||
|
||||
/**
|
||||
* Fetch template parameters
|
||||
*/
|
||||
SHIFT = _SHIFT,
|
||||
WIDTH = _WIDTH,
|
||||
BITFIELD_WIDTH = WIDTH,
|
||||
};
|
||||
/**
|
||||
* Fetch template parameters
|
||||
*/
|
||||
static constexpr size_t SHIFT = _SHIFT;
|
||||
static constexpr size_t WIDTH = _WIDTH;
|
||||
static constexpr size_t BITFIELD_WIDTH = WIDTH;
|
||||
|
||||
/**
|
||||
* Get an unshifted mask of this field
|
||||
|
Loading…
x
Reference in New Issue
Block a user