* Replace iris with httprouter * Linter fixes * Finalize iris removal * Vendor dependencies for reproducable builds * Api tests are back
15 lines
201 B
Go
15 lines
201 B
Go
package socket
|
|
|
|
import "unsafe"
|
|
|
|
var (
|
|
kernelAlign = func() int {
|
|
var p uintptr
|
|
return int(unsafe.Sizeof(p))
|
|
}()
|
|
)
|
|
|
|
func roundup(l int) int {
|
|
return (l + kernelAlign - 1) & ^(kernelAlign - 1)
|
|
}
|