Definitions in utils.h

Preprocessor macro definitions for the utils.h header file

Definitions:

#include <qvm/utils.h>
#define QVM_UNIQUE_FAILED (~(uint64_t)0)

Return code for qvm_unique() indicating that no system-wide unique number was obtained.

#define QVM_SLICE_NO_DESCRIPTOR ((uint8_t)~0)

Used in descriptor_idx to indicate that the slice has no matching descriptor.

#define QVM_SLICE_DESCRIPTOR_END {
          .writable=0,.offset=0,.nbytes=0,.store_offset=0,.tag=0}

Used to end a slice descriptor array.

#define ROUNDUP (val,round)

Round a value (val) up to a given power of two (round).

#define ROUNDDOWN (val,round)

Round a value (val) down to a given power of two (round).