package pmath
Import Path
github.com/gobwas/pool/internal/pmath (on go.dev)
Dependency Relation
imports 0 packages, and imported by one package
Involved Source Files
pmath.go
Package-Level Functions (total 5)
CeilToPowerOfTwo returns the least power of two integer value greater than
or equal to n.
FloorToPowerOfTwo returns the greatest power of two integer value less than
or equal to n.
Identity is identity.
IsPowerOfTwo reports whether given integer is a power of two.
LogarithmicRange iterates from ceiled to power of two min to max,
calling cb on each iteration.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |