summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-10-26 18:31:49 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-29 09:10:38 +0100
commitfebf5c7fd011de956fd2400b162d22f3dea5e520 (patch)
treedabf235a1cc9937f46033d0db3fce725453d2b91 /include
parent9c435088fbfd2da50b19e6fc66ef6676c85795e6 (diff)
downloadbarebox-febf5c7fd011de956fd2400b162d22f3dea5e520.tar.gz
barebox-febf5c7fd011de956fd2400b162d22f3dea5e520.tar.xz
linux/ctype.h: Port _tolower()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ctype.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ctype.h b/include/linux/ctype.h
index 74fb735778..633c3862d8 100644
--- a/include/linux/ctype.h
+++ b/include/linux/ctype.h
@@ -53,4 +53,13 @@ static inline unsigned char __toupper(unsigned char c)
#define tolower(c) __tolower(c)
#define toupper(c) __toupper(c)
+/*
+ * Fast implementation of tolower() for internal usage. Do not use in your
+ * code.
+ */
+static inline char _tolower(const char c)
+{
+ return c | 0x20;
+}
+
#endif