altos/lisp: bounds check in move_map plus binary search
authorKeith Packard <keithp@keithp.com>
Sat, 19 Nov 2016 05:16:11 +0000 (21:16 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:52 +0000 (11:16 -0800)
commit35424031747b41b1125e715a975f1679b89fc27a
treed8990f145fcd2c8c891ec23ecc95e51f260d9081
parent85db6d68a273859482e036b60fec7e2b84e9c262
altos/lisp: bounds check in move_map plus binary search

This makes move_map faster by skipping all addresses which aren't
changing.

Also changed the interface from address to offset to avoid computing
the offset multiple times.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/ao_lisp.h
src/lisp/ao_lisp_mem.c