Home
last modified time | relevance | path

Searched refs:INDEX_MAX (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dnicenum.c35 #define INDEX_MAX (6) macro
38 CTASSERT(INDEX_MAX * 10 < sizeof (uint64_t) * 8);
76 while (index < INDEX_MAX) { in nicenum_scale()
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_avl.c42 #define INDEX_MAX (sizeof (uintptr_t) - 2) macro
43 #define INDEX_NEXT(m) (((m) == INDEX_MAX)? 2 : ((m) + 2) & INDEX_MAX)
45 #define INDEX_DECODE(i) ((i) & ~INDEX_MAX)
46 #define INDEX_ENCODE(p, n) (((n) & ~INDEX_MAX) | (p)->ua_index)
47 #define INDEX_VALID(p, i) (((i) & INDEX_MAX) == (p)->ua_index)
48 #define INDEX_CHECK(i) (((i) & INDEX_MAX) != 0)
H A Duu_list.c50 #define INDEX_MAX (sizeof (uintptr_t) - 1) macro
51 #define INDEX_NEXT(m) (((m) == INDEX_MAX)? 1 : ((m) + 1) & INDEX_MAX)
53 #define INDEX_TO_NODE(i) ((uu_list_node_impl_t *)((i) & ~INDEX_MAX))
54 #define NODE_TO_INDEX(p, n) (((uintptr_t)(n) & ~INDEX_MAX) | (p)->ul_index)
55 #define INDEX_VALID(p, i) (((i) & INDEX_MAX) == (p)->ul_index)
56 #define INDEX_CHECK(i) (((i) & INDEX_MAX) != 0)