Re: [dwm] using bitaray for tags (PATCH)

From: David Tweed <david.tweed_AT_gmail.com>
Date: Thu, 22 May 2008 22:08:02 +0100

On Thu, May 22, 2008 at 9:37 PM, Szabolcs Nagy <nszabolcs_AT_gmail.com> wrote:
> On 5/22/08, David Tweed <david.tweed_AT_gmail.com> wrote:
> ..but (if eg int is 32 bit and we have 32 tags then) 1<<32 is 0, and
> -1 is "all ones" in binary (guaranteed by the c standard)

Ah, my mistake. I've spent too long writing 64-bit bitvector
manipulation on 64-bit platforms so I jumped to assuming that support
up to 64 tags was wanted on that architecture.

-- 
cheers, dave tweed__________________________
david.tweed_AT_gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"while having code so boring anyone can maintain it, use Python." --
attempted insult seen on slashdot
Received on Thu May 22 2008 - 23:08:07 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:43:51 UTC