Re: [PATCH] Change ZERO_SIZE_PTR to point at unmapped space

From: Larry H.
Date: Sat May 30 2009 - 19:02:58 EST


On 15:29 Sat 30 May , Linus Torvalds wrote:
>
>
> On Sat, 30 May 2009, Larry H. wrote:
> >
> > The ZERO_OR_NULL_PTR macro is changed accordingly. This patch does
> > not modify its behavior nor has any performance nor functionality
> > impact.
>
> I'm sure it makes a code generation difference, with (a) big constants and
> (b) no longer possible to merge the conditional into one single one.

Like I said in the reply to Peter, this is 3 extra bytes for amd64 with
gcc 4.3.3. I can't be bothered to check other architectures at the
moment.

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/