Re: [PATCH -mm] 64bit-futex - provide new commands instead of new syscall

From: Ulrich Drepper
Date: Mon Apr 23 2007 - 11:31:37 EST


On 4/23/07, Pierre Peiffer <pierre.peiffer@xxxxxxxx> wrote:
Following this mail sent few weeks ago, here is a patch which should meet your
requirements. [...]

It looks mostly good. I wouldn't use the high bit to differentiate
the 64-bit operations, though. Since we do not allow to apply it to
all operations the only effect will be that the compiler has a harder
time generating the code for the switch statement. If you use
continuous values a simple jump table can be used and no conditionals.
Smaller and faster.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/