C (102/254)

From:Allan Odgaard
Date:03 Apr 00 at 20:03:05
Subject:Re: ObtainPen for my colors

On 04-Apr-00, Duane McDonnell wrote:

> [...] I was just curious as to why you were multiplying by 0x01010101,
> I thought it might be a new trick to add to my collection :-) But I
> gather from your explanation that it was correcting an upper limit [...]1

Well, the upper-limit was one thing and the 0x01010101 was another, which I
myself do consider a neat trick ;-) it's supposed to achieve this:

a |= (a << 24) | (a << 16) | (a << 8);

Regards Allan