| 50 | } |
| 51 | |
| 52 | static uint32_t scope_name_hash(const char *name) { |
| 53 | uint32_t h = 2166136261u; /* FNV-1a */ |
| 54 | for (const unsigned char *p = (const unsigned char *)name; *p; p++) { |
| 55 | h ^= *p; |
| 56 | h *= 16777619u; |
| 57 | } |
| 58 | return h; |
| 59 | } |
| 60 | |
| 61 | /* Place one binding into a table that has room (load kept below 1/2). */ |
| 62 | static void scope_index_place(CBMVarBinding **slots, int cap, CBMVarBinding *b) { |
no outgoing calls
no test coverage detected