You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
353 B

if (key <= MAX_HASH_VALUE) {
int MPH = hash_to_MPH[key];
if (MPH >= 0) {
assert(MPH < MPH_MAX);
SLInterfaceID trial = &SL_IID_array[MPH];
if (!memcmp(iid, trial, sizeof(struct SLInterfaceID_)))
return MPH;
}
}
}
return -1;
}