diff options
Diffstat (limited to 'src/cmd/newlink/util.go')
| -rw-r--r-- | src/cmd/newlink/util.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd/newlink/util.go b/src/cmd/newlink/util.go new file mode 100644 index 0000000000..b8a6b2cb30 --- /dev/null +++ b/src/cmd/newlink/util.go @@ -0,0 +1,11 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +// round returns size rounded up to the next multiple of align; +// align must be a power of two. +func round(size, align Addr) Addr { + return (size + align - 1) &^ (align - 1) +} |
