mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
Assuming we have truncating (floor) division, way to do ceiling division by N is to use formula (x + (N-1)) / N. Specifically, 63 bits, if stored 7 bits per byte, require exactly 9 bytes. 64 bits overflow that and require 10 bytes.
28 KiB
28 KiB