add new GCC-specific macro and force inlining of certain functions where speed is paramount, even when optimization is disabled

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-11-01 20:09:09 +00:00
parent c24c35e5b6
commit 8839ff95df
5 changed files with 29 additions and 23 deletions

View File

@@ -30,7 +30,7 @@
#include "asterisk/compiler.h"
#include "asterisk/compat.h"
static inline int ast_strlen_zero(const char *s)
static force_inline int ast_strlen_zero(const char *s)
{
return (!s || (*s == '\0'));
}