aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-19 19:34:21 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-19 19:34:21 +0200
commit35b028cfe2841963f20809726c254daf91db44c6 (patch)
treeb4fcc9329117ca1da7f0492f7c7c08be306a9a72 /src
parentinfo: selecting hash function (diff)
downloadlibkeccak-35b028cfe2841963f20809726c254daf91db44c6.tar.gz
libkeccak-35b028cfe2841963f20809726c254daf91db44c6.tar.bz2
libkeccak-35b028cfe2841963f20809726c254daf91db44c6.tar.xz
do not use builtin functions in header files
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libkeccak/state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libkeccak/state.h b/src/libkeccak/state.h
index 75af84a..44f36ac 100644
--- a/src/libkeccak/state.h
+++ b/src/libkeccak/state.h
@@ -26,6 +26,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
+#include <string.h>
@@ -120,7 +121,7 @@ static inline __attribute__((nonnull, nothrow, unused))
void libkeccak_state_reset(libkeccak_state_t* restrict state)
{
state->mptr = 0;
- __builtin_memset(state->S, 0, sizeof(state->S));
+ memset(state->S, 0, sizeof(state->S));
}