Lines Matching refs:cmp
117 #define SPLAY_PROTOTYPE(name, type, field, cmp) \
130 if ((cmp)(elm, (head)->sph_root) == 0) \
159 #define SPLAY_GENERATE(name, type, field, cmp) \
168 __comp = (cmp)(elm, (head)->sph_root); \
191 if ((cmp)(elm, (head)->sph_root) == 0) { \
214 while ((__comp = (cmp)(elm, (head)->sph_root)) != 0) { \
219 if ((cmp)(elm, __tmp) < 0){ \
229 if ((cmp)(elm, __tmp) > 0){ \
379 #define RB_PROTOTYPE(name, type, field, cmp) \
380 RB_PROTOTYPE_INTERNAL(name, type, field, cmp,)
381 #define RB_PROTOTYPE_STATIC(name, type, field, cmp) \
382 RB_PROTOTYPE_INTERNAL(name, type, field, cmp, __unused static)
383 #define RB_PROTOTYPE_INTERNAL(name, type, field, cmp, attr) \
398 #define RB_GENERATE(name, type, field, cmp) \
399 RB_GENERATE_INTERNAL(name, type, field, cmp,)
400 #define RB_GENERATE_STATIC(name, type, field, cmp) \
401 RB_GENERATE_INTERNAL(name, type, field, cmp, __unused static)
402 #define RB_GENERATE_INTERNAL(name, type, field, cmp, attr) \
602 comp = (cmp)(elm, parent); \
630 comp = cmp(elm, tmp); \
649 comp = cmp(elm, tmp); \