Re: [PATCH 3/3] futex: make the encoded_op decoding readable

2017-03-04 Thread Jiri Slaby
On 03/03/2017, 01:27 PM, Jiri Slaby wrote: > Decoding of encoded_op is a bit unreadable. It contains shifts to the > left and to the right by some constants. Make it clearly visible what > part of the bit mask is taken and shift the values only to the right > appropriatelly. > > Signed-off-by: Jir

[PATCH 3/3] futex: make the encoded_op decoding readable

2017-03-03 Thread Jiri Slaby
Decoding of encoded_op is a bit unreadable. It contains shifts to the left and to the right by some constants. Make it clearly visible what part of the bit mask is taken and shift the values only to the right appropriatelly. Signed-off-by: Jiri Slaby --- kernel/futex.c | 8 1 file chang