summaryrefslogtreecommitdiffstats
path: root/include/int_sqrt.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-06-27 21:27:58 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-06-30 08:33:53 +0200
commitaa750244ee3dd31abb4888c83bfe65249365717a (patch)
tree9417339b72970f6ab7ed01f4159c15f99d1f0cc7 /include/int_sqrt.h
parent927176bc16aa2d321e7e98dd9f01a6e2004c5001 (diff)
downloadbarebox-aa750244ee3dd31abb4888c83bfe65249365717a.tar.gz
barebox-aa750244ee3dd31abb4888c83bfe65249365717a.tar.xz
video/edid: Move int_sqrt() out
Move int_sqrt() out of drivers/video/edid.c so that it is availible to other parts of Barebox. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/int_sqrt.h')
-rw-r--r--include/int_sqrt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/int_sqrt.h b/include/int_sqrt.h
new file mode 100644
index 0000000000..55fb4fbe66
--- /dev/null
+++ b/include/int_sqrt.h
@@ -0,0 +1,22 @@
+/*
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __INT_SQRT__
+#define __INT_SQRT__
+
+unsigned long int_sqrt(unsigned long x);
+
+#endif