Actually make non-power-of-2 alignments work
commit152656f8d3c34a1a5efef6d512439fc686690ecf
authorH. Peter Anvin <hpa@zytor.com>
Thu, 25 Sep 2008 09:31:50 +0000 (25 02:31 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 25 Sep 2008 09:31:50 +0000 (25 02:31 -0700)
tree7276331cf0219c2f3ac72a92d064a895c4b67834
parent6e79efc26b04dc7e82b528e8ff3e5f92d5f284b7
Actually make non-power-of-2 alignments work

We can't use ($$-$) % (%1) since the wraparound will be wrong except
for powers of 2.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
macros/smartalign.mac
standard.mac
test/align13.asm [new file with mode: 0644]
test/align13s.asm [new file with mode: 0644]