Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
59334213
Commit
59334213
authored
Jul 12, 2012
by
Niels Möller
Browse files
m4 portability fix for ALIGN macro.
parent
ee6ff2cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
59334213
2012-07-12 Niels Möller <nisse@lysator.liu.se>
* asm.m4 (ALIGN): Use << operator rather than **, with m4 eval.
The latter is not supported by BSD m4.
2012-07-07 Niels Möller <nisse@lysator.liu.se>
Copyright headers: Updated FSF address. Patch from David Woodhouse.
...
...
asm.m4
View file @
59334213
...
...
@@ -23,9 +23,14 @@ define(<EPILOGUE>,
<.size C_NAME($1), . - C_NAME($1)>,<>)>)
dnl Argument to ALIGN is always logarithmic
dnl Can't use << operator with our choice of quote characters...
dnl Need changequote to be able to use the << operator (using **
dnl instead is not portable, and is not supported by openbsd m4).
define(<ALIGN>,
<.align ifelse(ALIGN_LOG,yes,$1,eval(2 ** $1))>)
<changequote([,])dnl
.align ifelse(ALIGN_LOG,yes,$1,eval(1 << $1))dnl >> balance
changequote(<,>)dnl
>)
dnl Struct defining macros
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment