aboutsummaryrefslogtreecommitdiff
path: root/py/bc.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-02-20 13:25:05 +0200
committerPaul Sokolovsky2014-02-20 13:25:05 +0200
commita8d31b28bcf640579c013eeeb2e814c317e59111 (patch)
tree6080213056ea7fa211a0af6153b4245309840e38 /py/bc.h
parenta1aba36febc8ff1107114da2ffdac398206ebb7e (diff)
emitbc: Correct buffer sizes for varlen int encoding.
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.
Diffstat (limited to 'py/bc.h')
0 files changed, 0 insertions, 0 deletions