Compare a key enum value to an element in the all_enums array.
bsearch always passes the key as the first parameter and the pointer to the array element as the second parameter. We can elimiate some extra work by taking advantage of that fact.
- Parameters:
-
| a | Pointer to the desired enum name. |
| b | Pointer to an index into the all_enums array. |
Definition at line 4857 of file enums.c.
Referenced by _mesa_lookup_enum_by_nr().