aboutsummaryrefslogtreecommitdiffstats
path: root/config-armv8.mk
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-10-15 21:38:21 +0200
committerMattias Andrée <m@maandree.se>2024-10-15 21:38:21 +0200
commitd52f6ca14e59d95a5aa7377c22e1e37f486e84b5 (patch)
tree2f531383ee33268d13a6aaf7e336f5b1df967cbf /config-armv8.mk
parentm (diff)
downloadlibsha2-master.tar.gz
libsha2-master.tar.bz2
libsha2-master.tar.xz
Add optimised SHA-256 implementation using SHA-256 instrinsics for ARMv8 (almost 70 times faster)HEAD1.1.2master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'config-armv8.mk')
-rw-r--r--config-armv8.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/config-armv8.mk b/config-armv8.mk
new file mode 100644
index 0000000..c98fd0e
--- /dev/null
+++ b/config-armv8.mk
@@ -0,0 +1,14 @@
+PREFIX = /usr
+MANPREFIX = $(PREFIX)/share/man
+
+CC = cc -std=c11
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
+CFLAGS = -Wall -O3 -march=armv8-a+crypto
+LDFLAGS = -s
+
+# You can add -DALLOCA_LIMIT=# to CPPFLAGS, where # is a size_t
+# value, to put a limit on how large allocation the library is
+# allowed to make with alloca(3). For buffers that can have any
+# size this limit will be used if it wants to allocate a larger
+# buffer. Choose 0 to use malloc(3) instead of alloca(3).