From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- ANDROID_3.4.5/arch/powerpc/boot/stdlib.c | 45 -------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 ANDROID_3.4.5/arch/powerpc/boot/stdlib.c (limited to 'ANDROID_3.4.5/arch/powerpc/boot/stdlib.c') diff --git a/ANDROID_3.4.5/arch/powerpc/boot/stdlib.c b/ANDROID_3.4.5/arch/powerpc/boot/stdlib.c deleted file mode 100644 index e00d58c2..00000000 --- a/ANDROID_3.4.5/arch/powerpc/boot/stdlib.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * stdlib functions - * - * Author: Scott Wood - * - * Copyright (c) 2007 Freescale Semiconductor, Inc. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ - -#include "stdlib.h" - -/* Not currently supported: leading whitespace, sign, 0x prefix, zero base */ -unsigned long long int strtoull(const char *ptr, char **end, int base) -{ - unsigned long long ret = 0; - - if (base > 36) - goto out; - - while (*ptr) { - int digit; - - if (*ptr >= '0' && *ptr <= '9' && *ptr < '0' + base) - digit = *ptr - '0'; - else if (*ptr >= 'A' && *ptr < 'A' + base - 10) - digit = *ptr - 'A' + 10; - else if (*ptr >= 'a' && *ptr < 'a' + base - 10) - digit = *ptr - 'a' + 10; - else - break; - - ret *= base; - ret += digit; - ptr++; - } - -out: - if (end) - *end = (char *)ptr; - - return ret; -} -- cgit