| 32 | } |
| 33 | |
| 34 | static bool site_row(void *site, cbm_memev_site_t *out) { |
| 35 | static cbm_memev_site_t rows[64]; |
| 36 | size_t n = cbm_memev_sites(rows, 64); |
| 37 | for (size_t i = 0; i < n; i++) { |
| 38 | if (rows[i].site == (uintptr_t)site) { |
| 39 | *out = rows[i]; |
| 40 | return true; |
| 41 | } |
| 42 | } |
| 43 | return false; |
| 44 | } |
| 45 | |
| 46 | /* Requested vs usable is the allocator's slack, and it belongs to the site |
| 47 | * that asked: 3 x (100 requested, 112 handed out) = 36 bytes nobody can use. */ |
no test coverage detected