Commit graph

4 commits

Author SHA1 Message Date
05a8056cbf
Add documentation comments for all items 2023-08-20 11:21:29 +02:00
d5ac38ed9b
util: split to_flat_coord() and from_flat_coord() out of coord_offset() 2023-08-13 23:01:45 +02:00
9c4161f688
util: turn range check into debug_assert!()
More performance optimization.
2023-08-06 12:33:29 +02:00
21035a1f7f
Move coord offset to new util module, make more efficient
div_floor_mod() generates inefficient code. For power-of-2 divisors,
shift and mask can be used instead.
2023-08-06 11:26:08 +02:00