Lines Matching refs:nm
84 # define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \ argument
85 static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \
86 static int nm##_cmp(type1 const *, type2 const *); \
87 scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
91 # define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ argument
92 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
121 # define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ argument
122 static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \
126 return nm##_cmp(a,b); \
128 static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
131 nm##_cmp_BSEARCH_CMP_FN); \
135 # define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ argument
136 static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \
140 return nm##_cmp(a,b); \
142 type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
145 nm##_cmp_BSEARCH_CMP_FN); \