| 147 | * suppression -- never a true edge. */ |
| 148 | |
| 149 | static uint32_t py_param_hash(const char *s) { |
| 150 | uint32_t h = 2166136261u; /* FNV-1a */ |
| 151 | for (const unsigned char *p = (const unsigned char *)s; *p; p++) { |
| 152 | h = (h ^ *p) * 16777619u; |
| 153 | } |
| 154 | return h ? h : 1u; /* 0 marks an empty slot */ |
| 155 | } |
| 156 | |
| 157 | static CBMParamSlot *py_param_slot(WalkState *state, const char *name, uint32_t hash) { |
| 158 | int mask = state->py_param_slot_capacity - 1; |
no outgoing calls
no test coverage detected