v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BitFieldBase< T, shift, size, U > Class Template Reference

#include <utils.h>

Collaboration diagram for BitFieldBase< T, shift, size, U >:

Static Public Member Functions

static bool is_valid (T value)
 
static U encode (T value)
 
static U update (U previous, T value)
 
static T decode (U value)
 

Static Public Attributes

static const U kOne = static_cast<U>(1U)
 
static const U kMask = ((kOne << shift) << size) - (kOne << shift)
 
static const U kShift = shift
 
static const U kSize = size
 
static const T kMax = static_cast<T>((1U << size) - 1)
 

Detailed Description

template<class T, int shift, int size, class U>
class v8::internal::BitFieldBase< T, shift, size, U >

Definition at line 271 of file utils.h.

Member Function Documentation

static T decode ( U  value)
inlinestatic

Definition at line 301 of file utils.h.

static U encode ( T  value)
inlinestatic
static bool is_valid ( T  value)
inlinestatic
static U update ( U  previous,
T  value 
)
inlinestatic

Definition at line 296 of file utils.h.

Field Documentation

const T kMax = static_cast<T>((1U << size) - 1)
static
const U kOne = static_cast<U>(1U)
static

Definition at line 276 of file utils.h.

const U kShift = shift
static

Definition at line 278 of file utils.h.

const U kSize = size
static

Definition at line 279 of file utils.h.


The documentation for this class was generated from the following file: