Merge pull request #9511 from krux02/krux02-devel

Krux02 devel
This commit is contained in:
Arne Döring
2018-10-31 17:12:36 +01:00
committed by GitHub
5 changed files with 59 additions and 42 deletions

View File

@@ -1,3 +1,12 @@
#
#
# The Nim Compiler
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
## code owner: Arne Döring
## e-mail: arne.doering@gmx.net
proc align(address, alignment: BiggestInt): BiggestInt =
result = (address + (alignment - 1)) and not (alignment - 1)