On Sun 10/08/08, 21:16, Filippo Erik Negroni wrote: > The tag mask is exactly that, a mask: it is not the number of the tag > to use, but a mask that modifies the bits in the tag number. > The tag mask number in config.h is therefore a 'bit-mask': if you use > decimal '4' as the tag mask, the 'bit-mask' becomes bits > 0-0-0-0-0-1-0-0, which when applied, indicates we want the third tag > (the 1 in the third bit from the right) to be selected, hence tag '3'. > I will try and post examples in the 'customisation' link on the wiki > tomorrow, for the general public.
Thanks for the nice explanation. Then, if I get it, 6 as a tag mask stays for 0-0-0-0-0-0-1-1-0 and indicates that we want the second and the third tag, while 8 stays for 0-0-0-0-0-1-0-0-0 and indicates that we want the fourth one. Great, I also understand the great felxibility of this system. I still do not understand how this relates to tag masks like 1 << 8 - 1, or ~0, which I have seen in some config.h, but I will look to your examples in the wiki and will probably get it. Giorgio
