34#ifndef SORTQUEUE_H_DEFINED
35#define SORTQUEUE_H_DEFINED
63#define ADJUST_ROLLOVER_POINT 0x80000000
70#define ADJUST_ROLLOVER_VALUE 0x10000
78static inline int sq_lt_compare (
unsigned int a,
unsigned int b) {
97static inline int sq_lte_compare (
unsigned int a,
unsigned int b) {
118static inline int sq_init (
155static inline void sq_reinit (
struct sq *
sq,
unsigned int head_seqid)
171static inline void sq_assert (
const struct sq *
sq,
unsigned int pos)
208static inline void sq_free (
struct sq *
sq) {
221static inline void *sq_item_add (
254static inline unsigned int sq_item_inuse (
282static inline unsigned int sq_item_miss_count (
298static inline unsigned int sq_size_get (
310static inline unsigned int sq_in_range (
346static inline unsigned int sq_item_get (
382static inline void sq_items_release (
struct sq *
sq,
unsigned int seqid)
#define ADJUST_ROLLOVER_POINT
ADJUST_ROLLOVER_POINT is the value used to determine when a window should be used to calculate a less...
#define ADJUST_ROLLOVER_VALUE
ADJUST_ROLLOVER_VALUE is the value by which both values in a comparison are adjusted if either value ...
unsigned int size_per_item
unsigned int * items_miss_count
unsigned int * items_inuse