Re: [PATCH] mask ADT: bitmap and bitop tweaks [1/22]

From: Paul Jackson
Date: Mon Mar 29 2004 - 19:49:08 EST

> No, not those two. xor of 0's is 0 again. and of 0 and anything is 0 again.

I agree with Bill on this.

> It looks like Paul wants those invariants.

No - bitmap wants these invariants, and I wanted bitmap to be
consistent. It's an exposed API in its own right. Since it mostly
already had filtering of unused bits on Boolean/scalar ops, and
avoidance of setting unused bits on proper calls, I completed that

For masks, I promise not to set them if you don't screw up, but I don't
add any code to protect against such, and I don't hestitate to presume
the unused bits are always zero whenever it is convenient to do so.

I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at