summaryrefslogtreecommitdiff
path: root/asm.m4
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2006-04-26 22:05:45 +0200
committerNiels Möller <nisse@lysator.liu.se>2006-04-26 22:05:45 +0200
commitb86fb5790c31ac02daf7ec1821a8a424ce0476c9 (patch)
tree81518320ac8e799b6586d3aaedde83f905dad21e /asm.m4
parent82ffd6f8fec0af8821971e6586a77e5bfad65ddc (diff)
downloadnettle-b86fb5790c31ac02daf7ec1821a8a424ce0476c9.tar.gz
* config.m4.in (ASM_ALIGN_LOG): Substitute.
* configure.ac (ASM_ALIGN_LOG): Check if .align directive is logarithmic. * asm.m4 (ALIGN): New macro. Takes a logarithmic argument, and expands to a .align directive. Rev: src/nettle/asm.m4:1.16 Rev: src/nettle/config.m4.in:1.6
Diffstat (limited to 'asm.m4')
-rw-r--r--asm.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/asm.m4 b/asm.m4
index 99c72c01..199f0882 100644
--- a/asm.m4
+++ b/asm.m4
@@ -23,6 +23,10 @@ define(<EPILOGUE>,
<.L$1end:
.size C_NAME($1), .L$1end - C_NAME($1)>,)>)
+dnl Argument to ALIGN is always logarithmic
+dnl Can't use << operator with our choice of quote characters...
+define(<ALIGN>,
+<.align ifelse(ALIGN_LOG,yes,$1,eval(2 ** $1))>)
dnl Struct defining macros