Definitions in utils.h

Preprocessor macro definitions for the utils.h header file in the qvm library

Definitions:

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

Value 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}

Used to end a slice descriptor array

#define ROUNDUP (((val) + ((round)-1)) & ~(((typeof (val))((round)-1))))

Round a value up to a given power of two

#define ROUNDDOWN ((val) & ~(((typeof (val))((round)-1))))

Round a value down to a given power of two

Library:

qvm