summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-08 17:34:05 +0000
committerDenis Vlasenko2007-09-08 17:34:05 +0000
commit4c1d88daff14331b64ef1019faf3f6f1ecaff817 (patch)
tree9676ad98bca2d41581406e7ccebbbd069f4d74cc /include/platform.h
parente7c1ad1540ad18b17bd9ec93823dbf38583b5b87 (diff)
downloadbusybox-4c1d88daff14331b64ef1019faf3f6f1ecaff817.zip
busybox-4c1d88daff14331b64ef1019faf3f6f1ecaff817.tar.gz
top: get rid of on-stack variable buffers, use permanent one.
code shrank with and without TOPMEM: top_main 828 844 +16 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52) Total: -36 bytes top_main 1150 1171 +21 display_topmem_process_list 1150 1167 +17 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52) Total: -14 bytes
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index ff23ca1..3980945 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -54,6 +54,7 @@
# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
# if __GNUC_PREREQ (3,0)
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
+# define NOINLINE __attribute__((noinline))
# if !ENABLE_WERROR
# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))