altos: Simplify discovery of log end position
authorKeith Packard <keithp@keithp.com>
Tue, 18 May 2021 05:38:14 +0000 (22:38 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 05:53:51 +0000 (22:53 -0700)
commit565778b66e59069fc6a6d6518f28354eae954dc1
tree4987377e44ed7f8a8b4b08eae314f7a401e76d07
parent8dec0d1be5a2d7633045c5c0e86b32a9e6b60299
altos: Simplify discovery of log end position

Binary search using log block indices rather than byte positions. This
makes the code much easier to understand as there isn't a mystic modulus.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_log.c