Lines Matching refs:type2
1025 # define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \
1027 static int nm##_cmp(type1 const *, type2 const *); \
1028 scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
1030 # define DECLARE_OBJ_BSEARCH_CMP_FN(type1, type2, cmp) \
1031 _DECLARE_OBJ_BSEARCH_CMP_FN(static, type1, type2, cmp)
1032 # define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \
1033 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
1062 # define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \
1066 type2 const *b = b_; \
1069 static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
1071 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
1076 # define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \
1080 type2 const *b = b_; \
1083 type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
1085 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
1090 # define OBJ_bsearch(type1,key,type2,base,num,cmp) \
1091 ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \
1092 num,sizeof(type2), \
1094 (void)CHECKED_PTR_OF(type2,cmp##_type_2), \
1097 # define OBJ_bsearch_ex(type1,key,type2,base,num,cmp,flags) \
1098 ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \
1099 num,sizeof(type2), \
1101 (void)type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \