From 3a1ceaf3d08ace2b81cf0c3418e5720638847360 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 28 Dec 2002 14:59:29 +0000 Subject: [PATCH] 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 --- src/core/misc.h | 10 ++-------- 1 file 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