commit | 39112ace9d56f97dd4bfa6a5671e976a9d30f9af | [log] [tgz] |
---|---|---|
author | Deepa Dinamani <deepad@codeaurora.org> | Thu Dec 20 11:32:05 2012 -0800 |
committer | Deepa Dinamani <deepad@codeaurora.org> | Mon Dec 24 20:16:03 2012 -0800 |
tree | dae572ce3bcd948bd4a83a0e01f18e41f179d246 | |
parent | 62df2c77bb3b01fea5e8f669d6016e7a485acd7c [diff] [blame] |
lib: libc: Add routines to find greatest common divisor and least common multiple. Change-Id: Id1e87e594091972043b5a2894c781b52eebcb519
diff --git a/include/stdlib.h b/include/stdlib.h index 3052dab..7fe5b3d 100644 --- a/include/stdlib.h +++ b/include/stdlib.h
@@ -30,6 +30,8 @@ #include <endian.h> #include <arch/defines.h> +unsigned gcd(unsigned m, unsigned n); +unsigned lcm(unsigned m, unsigned n); int atoi(const char *num); unsigned int atoui(const char *num); long atol(const char *num);