From f1b89df8d8c76a11747fc076298bf38b0d73cc4f Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 28 Oct 2013 12:54:16 +0100 Subject: [PATCH] explain the "brainfuck condition" --- core/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/msg.c b/core/msg.c index 20bdf732e8..8201153896 100644 --- a/core/msg.c +++ b/core/msg.c @@ -275,7 +275,7 @@ static int _msg_receive(msg_t *m, int block) int msg_init_queue(msg_t *array, int num) { - /* make sure brainfuck condition is met */ + /* check if num is a power of two by comparing to its complement */ if (num && (num & (num - 1)) == 0) { tcb_t *me = (tcb_t*) active_thread; me->msg_array = array;