diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-17 15:11:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-17 15:11:33 +0100 |
commit | 6570686dc178b801b287e0ab155aaf691bbcb1eb (patch) | |
tree | 72ac2dcc50d58314b607ce523792ae6e7ec2a102 /libar2_erase.c | |
parent | Add optimisations (no yet used) (diff) | |
download | libar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.gz libar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.bz2 libar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.xz |
m + use optimisations '(adds auto-executed function: libar2_init)'
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libar2_erase.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libar2_erase.c b/libar2_erase.c index 0e3174e..585d7d9 100644 --- a/libar2_erase.c +++ b/libar2_erase.c @@ -6,19 +6,13 @@ #elif defined(explicit_bzero) || defined(__OpenBSD__) #elif defined(explicit_memset) #else -# if defined(__GNUC__) -__attribute__((visibility("hidden"))) -# endif +LIBAR2_HIDDEN__ extern void *(*const volatile libar2_internal_explicit_memset__)(void *, int, size_t); void *(*const volatile libar2_internal_explicit_memset__)(void *, int, size_t) = &memset; #endif -/* libar2_internal_erase__ is intended for the test code to use, because it replaces `libar2_erase` */ -# if defined(__GNUC__) -__attribute__((visibility("hidden"))) -# endif -void libar2_internal_erase__(volatile void *mem, size_t size); +/* libar2_internal_erase__ is intended for the test code to use, because it replaces `libar2_erase` */ #if defined(__clang__) /* before __GNUC__ because that is also set in clang */ # if __has_attribute(optnone) __attribute__((optnone)) |