summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-03-06 18:44:11 +0100
committerTobias Klauser <tklauser@distanz.ch>2018-03-06 18:44:11 +0100
commit2af099cae27fef1a57aa25d48fc915d619ea216d (patch)
treeff661aad6ab62c6db94b68a3eacba930ffb87881 /built_in.h
parent18f5d4dde7ef18efa0489f2007f5ebeed89975ea (diff)
all: drop fmem{cpy,set}
There is no need to explicity use the builtins. According to [1], GCC will recognize mem{cpy,set} as built-in functions, unless the corresponding -fno-builtin-* option is specified (which is not the case for netsniff-ng). [1] https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/built_in.h b/built_in.h
index da04dbd..24af1bc 100644
--- a/built_in.h
+++ b/built_in.h
@@ -65,14 +65,6 @@ typedef uint8_t u8;
# define constant(x) __builtin_constant_p(x)
#endif
-#ifndef fmemset
-# define fmemset __builtin_memset
-#endif
-
-#ifndef fmemcpy
-# define fmemcpy __builtin_memcpy
-#endif
-
#ifndef __maybe_unused
# define __maybe_unused __attribute__((__unused__))
#endif