[libc] Add isqrt() function to find integer square roots

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-04-26 18:19:49 +01:00
parent 9e8c48deea
commit 3ffd309375
3 changed files with 77 additions and 0 deletions

14
src/include/ipxe/isqrt.h Normal file
View File

@@ -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 */