xmath: Addon math routines
So far only one of them: CeilPow2 to return min(y) >= x: y = 2^i - i.e. next power of two >= x. This is handy to have in reallocation routines to allocate buffers from 2^i classes. Two implementations: - fast for go19 - slower fallback for go18
Showing
xmath/math18.go
0 → 100644
xmath/math19.go
0 → 100644
xmath/math_test.go
0 → 100644
Please register or sign in to comment