From 3ffd309375c8f044939a77eb4738bc0b16c01965 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 26 Apr 2014 18:19:49 +0100 Subject: [libc] Add isqrt() function to find integer square roots Signed-off-by: Michael Brown --- src/include/ipxe/isqrt.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/include/ipxe/isqrt.h (limited to 'src/include/ipxe') diff --git a/src/include/ipxe/isqrt.h b/src/include/ipxe/isqrt.h new file mode 100644 index 000000000..58ed42f0c --- /dev/null +++ b/src/include/ipxe/isqrt.h @@ -0,0 +1,14 @@ +#ifndef _IPXE_ISQRT_H +#define _IPXE_ISQRT_H + +/** @file + * + * Integer square root + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +extern unsigned long isqrt ( unsigned long value ); + +#endif /* _IPXE_ISQRT_H */ -- cgit v1.2.3-55-g7522