diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/misc.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/misc.h b/src/core/misc.h index b18ad154..46f91bb8 100644 --- a/src/core/misc.h +++ b/src/core/misc.h @@ -8,14 +8,6 @@ typedef void* (*FOREACH_FIND_FUNC) (void *item, void *data); typedef int (*COLUMN_LEN_FUNC)(void *data); -extern inline int nearest_power(int num) -{ - int n = 1; - - while (n < num) n <<= 1; - return n; -} - /* Returns 1 if tv1 > tv2, -1 if tv2 > tv1 or 0 if they're equal. */ int g_timeval_cmp(const GTimeVal *tv1, const GTimeVal *tv2); /* Returns "tv1 - tv2", returns the result in milliseconds. Note that @@ -111,4 +103,6 @@ int expand_escape(const char **data); /* Escape all '"', "'" and '\' chars with '\' */ char *escape_string(const char *str); +int nearest_power(int num); + #endif |