summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timers.c b/src/timers.c
index 636b851..ab9ada4 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -21,7 +21,7 @@ enum {
/* This rounds the time down to the closest power of two of the closest quarter second. */
static inline unsigned long slack_time(unsigned long time)
{
- return time & ~(BIT_MASK(ilog2(HZ / 4) + 1) - 1);
+ return time & ~(roundup_pow_of_two(HZ / 4) - 1);
}
static void expired_retransmit_handshake(unsigned long ptr)