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

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Wed, 21 May 2008 12:52:25 +0200

On 5/21/08, markus schnalke <meillo_AT_marmaro.de> wrote:
> I read, that bit-arrays are not very portable between different
> architectures. (It was in "The practice of programming", I think)

it's not exactly a bit array (arbitrary number of bits implemented eg.
as char array), it's only one int (with bit flags)

this is portable (a possible caveat is that some bit operations on
negative values are implementation defined by c89 (eg. -1 >> 1) so
unsigned int is recommended in those cases)
Received on Wed May 21 2008 - 12:52:27 UTC

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