summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/utils.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-06 16:58:17 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-06 16:58:53 +0200
commit15a5f8de00c9c11a985ab16279ffae02b1e4667f (patch)
treeefacad0ecc80250d0258ed0cae5dda314680779c /include/osmocom/core/utils.h
parentdfb0b97f55452edc4ca4145f25c45b1d74014782 (diff)
Add osmo_isqrt32() to compute 32bit integer square root
Change-Id: I2b96db6e037e72e92317fec874877e473a1cf909
Diffstat (limited to 'include/osmocom/core/utils.h')
-rw-r--r--include/osmocom/core/utils.h2
1 files changed, 2 insertions, 0 deletions
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);
+
/*! @} */