summaryrefslogtreecommitdiff
path: root/powerpc64
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-07 10:35:02 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-07 10:35:02 +0100
commitcfd769e56deea99b21f49eebe460f205f4f6525d (patch)
tree1177754a3e8537f026e1d7c678bdb24412eba79f /powerpc64
parentde67305ca47e1c5aef440026741dc454ef3a9405 (diff)
downloadnettle-cfd769e56deea99b21f49eebe460f205f4f6525d.tar.gz
ppc: Add altivec detection to fat builds
Diffstat (limited to 'powerpc64')
-rw-r--r--powerpc64/fat/chacha-core-internal-2.asm37
1 files changed, 37 insertions, 0 deletions
diff --git a/powerpc64/fat/chacha-core-internal-2.asm b/powerpc64/fat/chacha-core-internal-2.asm
new file mode 100644
index 00000000..35c059ea
--- /dev/null
+++ b/powerpc64/fat/chacha-core-internal-2.asm
@@ -0,0 +1,37 @@
+C powerpc64/fat/chacha-core-internal-2.asm
+
+
+ifelse(`
+ Copyright (C) 2020 Niels Möller
+
+ This file is part of GNU Nettle.
+
+ GNU Nettle is free software: you can redistribute it and/or
+ modify it under the terms of either:
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ or both in parallel, as here.
+
+ GNU Nettle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see http://www.gnu.org/licenses/.
+')
+
+dnl PROLOGUE(_nettle_chacha_core) picked up by configure
+
+define(`fat_transform', `$1_altivec')
+include_src(`powerpc64/p7/chacha-core-internal.asm')