Lines Matching refs:cmp
114 #define SPLAY_PROTOTYPE(name, type, field, cmp) \
127 if ((cmp)(elm, (head)->sph_root) == 0) \
156 #define SPLAY_GENERATE(name, type, field, cmp) \
165 __comp = (cmp)(elm, (head)->sph_root); \
188 if ((cmp)(elm, (head)->sph_root) == 0) { \
211 while ((__comp = (cmp)(elm, (head)->sph_root))) { \
216 if ((cmp)(elm, __tmp) < 0){ \
226 if ((cmp)(elm, __tmp) > 0){ \
376 #define RB_PROTOTYPE(name, type, field, cmp) \
389 #define RB_GENERATE(name, type, field, cmp) \
587 comp = (cmp)(elm, parent); \
615 comp = cmp(elm, tmp); \
791 #define SPLAY_PROTOTYPE(name, type, field, cmp) \
804 if ((cmp)(elm, (head)->sph_root) == 0) \
833 #define SPLAY_GENERATE(name, type, field, cmp) \
842 __comp = (cmp)(elm, (head)->sph_root); \
865 if ((cmp)(elm, (head)->sph_root) == 0) { \
888 while ((__comp = (cmp)(elm, (head)->sph_root))) { \
893 if ((cmp)(elm, __tmp) < 0){ \
903 if ((cmp)(elm, __tmp) > 0){ \
1053 #define RB_PROTOTYPE(name, type, field, cmp) \
1066 #define RB_GENERATE(name, type, field, cmp) \
1264 comp = (cmp)(elm, parent); \
1292 comp = cmp(elm, tmp); \