summaryrefslogtreecommitdiff
path: root/asm.m4
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2015-01-17 21:31:47 +0100
committerNiels Möller <nisse@lysator.liu.se>2015-01-17 21:31:47 +0100
commit0149d937efbc8fcc34428d2232d4b366b2d97663 (patch)
treec3db318bd58d00f6d3f4a3053fe973cd7fb8352d /asm.m4
parentf003aee64b9f3181770faeb42b8fe9a02a78d5c3 (diff)
downloadnettle-0149d937efbc8fcc34428d2232d4b366b2d97663.tar.gz
Reorganize symbols for fat routines.
Diffstat (limited to 'asm.m4')
-rw-r--r--asm.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/asm.m4 b/asm.m4
index dc59ab68..bbc90bd4 100644
--- a/asm.m4
+++ b/asm.m4
@@ -13,7 +13,8 @@ dnl Including files from the srcdir
define(<include_src>, <include(srcdir/$1)>)dnl
dnl default definition, changed in fat builds
-define(<fat_suffix>, <>)
+define(<fat_transform>, <$1>)
+define(<C_NAME>, <SYMBOL_PREFIX<>fat_transform($1)>)
dnl Pseudo ops
define(<DECLARE_FUNC>,
@@ -27,13 +28,13 @@ COFF_STYLE, yes,
<>)>)
define(<PROLOGUE>,
-<.globl C_NAME($1)<>fat_suffix
-DECLARE_FUNC(C_NAME($1)<>fat_suffix)
-C_NAME($1)<>fat_suffix:>)
+<.globl C_NAME($1)
+DECLARE_FUNC(C_NAME($1))
+C_NAME($1):>)
define(<EPILOGUE>,
<ifelse(ELF_STYLE,yes,
-<.size C_NAME($1)<>fat_suffix, . - C_NAME($1)<>fat_suffix>,<>)>)
+<.size C_NAME($1), . - C_NAME($1)>,<>)>)
define(<m4_log2>, <m4_log2_internal($1,1,0)>)
define(<m4_log2_internal>,