Commit 05ac856e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Document IntToExponent.

parent 891b2d7a
......@@ -17,7 +17,7 @@ type BufferPool struct {
buffersByExponent [][][]byte
}
// TODO: use table ?
// Returns the smallest E such that 2^E >= Z.
func IntToExponent(z int) uint {
x := z
var exp uint = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment