Lines Matching refs:nm
76 # define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \
77 static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \
78 static int nm##_cmp(type1 const *, type2 const *); \
79 scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
83 # define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \
84 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
113 # define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \
114 static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \
118 return nm##_cmp(a,b); \
120 static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
123 nm##_cmp_BSEARCH_CMP_FN); \
127 # define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \
128 static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) \
132 return nm##_cmp(a,b); \
134 type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
137 nm##_cmp_BSEARCH_CMP_FN); \