[Bf-committers] Radio code!
theeth at yahoo.com
Mon Dec 11 00:08:01 CET 2006
--- Alexander Ewering <blender at instinctive.de> wrote:
> On Sun, 10 Dec 2006, Ton Roosendaal wrote:
> > *((unsigned int*)face->v1+3)= ~0;
> What looks evil to me here is the question: "Will
> the compiler know how many
> 1's to fill in?"...
Of course it will, it'll do a bitwise inversion of 0
as unsigned int.
> I mean, basically, ~0 is meaningless. There is no
> inverse to 0. Well, it
> would be infinity. One can only hope the compiler
> knows that it's either 32
> or 64 bits depending on sizeof(unsigned int)...
One can do more than assume here. If such a simple
thing didn't work, you can pretty much loose hope in
that particular compiler.
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
More information about the Bf-committers