| 481 | } |
| 482 | |
| 483 | void ewah_pool_free(struct ewah_bitmap *self) |
| 484 | { |
| 485 | if (!self) |
| 486 | return; |
| 487 | |
| 488 | if (bitmap_pool_size == BITMAP_POOL_MAX || |
| 489 | self->alloc_size == 0) { |
| 490 | ewah_free(self); |
| 491 | return; |
| 492 | } |
| 493 | |
| 494 | ewah_clear(self); |
| 495 | bitmap_pool[bitmap_pool_size++] = self; |
| 496 | } |
| 497 | |
| 498 | uint32_t ewah_checksum(struct ewah_bitmap *self) |
| 499 | { |
no test coverage detected