diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-09-26 22:27:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-10-03 13:45:37 +0200 |
commit | 2c3dbff1d89bbf8300c121c06524c014cb6e0915 (patch) | |
tree | 4ee59ecc12cf45f334a7c179773d27bffb9131c6 /libavutil/avstring.c | |
parent | f56a08559334b7eb6b3fedbc0cc741887f6067ae (diff) |
avutil/avstring: Inline some tiny functions
They're short enough that inlining them actually reduces code size due to
all the overhead associated with making a function call.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c index eb5c95a01c..5a443ab11b 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -212,28 +212,6 @@ const char *av_dirname(char *path) return path; } -int av_isdigit(int c) -{ - return c >= '0' && c <= '9'; -} - -int av_isgraph(int c) -{ - return c > 32 && c < 127; -} - -int av_isspace(int c) -{ - return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || - c == '\v'; -} - -int av_isxdigit(int c) -{ - c = av_tolower(c); - return av_isdigit(c) || (c >= 'a' && c <= 'f'); -} - int av_match_name(const char *name, const char *names) { const char *p; |