mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-05 13:08:57 +07:00
9 lines
244 B
Go
9 lines
244 B
Go
// Copied from https://github.com/cilium/ebpf/blob/v0.10.0/internal/align.go
|
|
|
|
package internal
|
|
|
|
// Align returns 'n' updated to 'alignment' boundary.
|
|
func Align(n, alignment int) int {
|
|
return (int(n) + alignment - 1) / alignment * alignment
|
|
}
|