5#ifndef RUNTIME_VM_BOOLFIELD_H_
6#define RUNTIME_VM_BOOLFIELD_H_
15template <
int position>
21 return static_cast<uword>((
value ? 1U : 0) << position);
27 return (
value & (1U << position)) != 0;
35 const uword mask = 1U << position;
36 return value ? original | mask : original & ~mask;
static bool decode(uword value)
static uword update(bool value, uword original)
static uword encode(bool value)