about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-11-11 23:50:31 +0100
committervan Hauser <vh@thc.org>2019-11-11 23:50:31 +0100
commit760d4991f331c1a6719ce82df9b612e94c9a387c (patch)
tree5a4817dd720ae791927a3305131196ef63cca0e4 /include/config.h
parent613ab3ba2a9dcf70839e69ab2c4b32fc4b4a8a7f (diff)
downloadafl++-760d4991f331c1a6719ce82df9b612e94c9a387c.tar.gz
Android PR integration
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 144d3810..9c90155f 100644
--- a/include/config.h
+++ b/include/config.h
@@ -52,13 +52,18 @@
 
 #define EXEC_TM_ROUND 20
 
+/* 64bit arch MACRO */
+#if (defined (__x86_64__) || defined (__arm64__) || defined (__aarch64__))
+#define WORD_SIZE_64 1
+#endif
+
 /* Default memory limit for child process (MB): */
 
-#ifndef __x86_64__
+#ifndef WORD_SIZE_64
 #define MEM_LIMIT 25
 #else
 #define MEM_LIMIT 50
-#endif                                                      /* ^!__x86_64__ */
+#endif                                                      /* ^!WORD_SIZE_64 */
 
 /* Default memory limit when running in QEMU mode (MB): */