mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-12 08:56:58 +00:00

The last known good commit is 6da3249dfb57fbaa16efafcd8744cee8809d80cd before the first release tag.
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)
|
|
}
|