]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/boot/flatdevtree_env.h
[POWERPC] Move bootwrapper's strchr() and strncmp() from .h to string.S
[linux-2.6-omap-h63xx.git] / arch / powerpc / boot / flatdevtree_env.h
index 83bc1c718836f8d80a525aca082e971c9cedcdb6..ad0420da8921616f3c74c668a3c862b9048530a4 100644 (file)
 #define be64_to_cpu(x)         (x)
 #define cpu_to_be64(x)         (x)
 
-static inline int strncmp(const char *cs, const char *ct, size_t count)
-{
-       signed char __res = 0;
-
-       while (count) {
-               if ((__res = *cs - *ct++) != 0 || !*cs++)
-                       break;
-               count--;
-       }
-       return __res;
-}
-
-static inline char *strchr(const char *s, int c)
-{
-       for (; *s != (char)c; ++s)
-               if (*s == '\0')
-                       return NULL;
-       return (char *)s;
-}
-
 #endif /* _PPC_BOOT_FLATDEVTREE_ENV_H_ */