GoToSocial/vendor/github.com/cilium/ebpf/internal/align.go

7 lines
166 B
Go

package internal
// Align returns 'n' updated to 'alignment' boundary.
func Align(n, alignment int) int {
return (int(n) + alignment - 1) / alignment * alignment
}