diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-09-26 18:04:11 +0200 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2015-09-26 22:08:02 +0200 |
commit | ad9a543e9351d940a53450f793458664c8a74a73 (patch) | |
tree | 9bbf38f4128e46d80b1d3ed8edf8258e0b6b3b36 /libavutil/avstring.c | |
parent | 4e03f0ab08e27537512107cba6e357d34284a35f (diff) | |
download | ffmpeg-ad9a543e9351d940a53450f793458664c8a74a73.tar.gz |
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.
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 24d1bb98e9..57fe74d252 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -317,28 +317,6 @@ int av_escape(char **dst, const char *src, const char *special_chars, } } -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; |