** Check whether real size of the array is a power of 2. ** (If it is not, 'alimit' cannot be changed to any other value ** without changing the real size.) */
| 265 | ** without changing the real size.) |
| 266 | */ |
| 267 | static int ispow2realasize (const Table *t) { |
| 268 | return (!isrealasize(t) || ispow2(t->alimit)); |
| 269 | } |
| 270 | |
| 271 | |
| 272 | static unsigned int setlimittosize (Table *t) { |