summaryrefslogtreecommitdiff
path: root/standard.mac
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-07-16 14:38:58 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-07-16 14:38:58 -0700
commitf9a725aeb7736cc2d82413c636724212c3505073 (patch)
treefab3c298e34055afa8c44f253070e7aeaf38b9ef /standard.mac
parent90e6e811c9d16012ac397f3b920986edee3db037 (diff)
downloadnasm-f9a725aeb7736cc2d82413c636724212c3505073.tar.gz
standard.mac: allow non-power-of-2 alignments
Allow aligning to a non-power-of-2 boundary. It's probably useless, but doesn't really hurt.
Diffstat (limited to 'standard.mac')
-rw-r--r--standard.mac4
1 files changed, 2 insertions, 2 deletions
diff --git a/standard.mac b/standard.mac
index b87e58c5..9732be37 100644
--- a/standard.mac
+++ b/standard.mac
@@ -66,10 +66,10 @@ __SECT__
%endmacro
%imacro align 1-2+.nolist nop
- times ($$-$) & ((%1)-1) %2
+ times ($$-$) % (%1) %2
%endmacro
%imacro alignb 1-2+.nolist resb 1
- times ($$-$) & ((%1)-1) %2
+ times ($$-$) % (%1) %2
%endmacro
%imacro extern 1-*.nolist