From 15a5f8de00c9c11a985ab16279ffae02b1e4667f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 6 Jun 2018 16:58:17 +0200 Subject: Add osmo_isqrt32() to compute 32bit integer square root Change-Id: I2b96db6e037e72e92317fec874877e473a1cf909 --- include/osmocom/core/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h index 8928f686..cd22dfb0 100644 --- a/include/osmocom/core/utils.h +++ b/include/osmocom/core/utils.h @@ -128,4 +128,6 @@ const char *osmo_escape_str_buf(const char *str, int in_len, char *buf, size_t b const char *osmo_quote_str(const char *str, int in_len); const char *osmo_quote_str_buf(const char *str, int in_len, char *buf, size_t bufsize); +uint32_t osmo_isqrt32(uint32_t x); + /*! @} */ -- cgit v1.2.3