summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-28 14:59:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-28 14:59:29 +0000
commit3a1ceaf3d08ace2b81cf0c3418e5720638847360 (patch)
treefef57bc802034e9132317d6086a8370dc9e1b655 /src/core
parentc4c642818581120120898ebc65215a0c318c6215 (diff)
downloadirssi-3a1ceaf3d08ace2b81cf0c3418e5720638847360.zip
don't bother with inlining at all, it doesn't help that much and I'm not
sure how to do it properly without warnings :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3078 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/misc.h10
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