From: Geert Uytterhoeven <geert@linux-m68k.org>
To: WANG Cong <xiyou.wangcong@gmail.com>
Cc: "Benny Halevy" <bhalevy@panasas.com>,
"Ming Lei" <tom.leiming@gmail.com>,
"Jan Engelhardt" <jengelh@computergmbh.de>,
"\"J.A. Magallón\"" <jamagallon@ono.com>,
"Linux-Kernel," <linux-kernel@vger.kernel.org>
Subject: Re: void* arithmnetic
Date: Fri, 30 Nov 2007 12:38:04 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0711301237430.746@anakin> (raw)
In-Reply-To: <20071129123139.GB2458@hacking>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1192 bytes --]
On Thu, 29 Nov 2007, WANG Cong wrote:
> On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote:
> >On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <tom.leiming@gmail.com> wrote:
> >> 2007/11/29, Jan Engelhardt <jengelh@computergmbh.de>:
> >>> On Nov 29 2007 01:05, J.A. Magallón wrote:
> >>>> Since begin of the ages the build of the nvidia driver says things like
> >>>> this:
> >>>>
> >>> Explicitly adding -Wpointer-arith to ones own Makefile is like
> >>> admitting the code might be problematic. :->
> >>>
> >>>
> >>> I think sizeof(void *) == 1 is taken as granted as sizeof(int) >= 4
> >>> these days. Sigh.
> >> sizeof(void *) == 4, sizeof(void)==1, :)
> >well, sizeof(void *) == sizeof(unsigned long) maybe :)
>
> I *heard* that on Win64 sizeof(void *) > sizeof(long). But it's off-topic
> here. ;-)
Yes, Win64 is P64, to make sure it's incompatible with the rest of the
world.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
prev parent reply other threads:[~2007-11-30 11:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 0:05 J.A. Magallón
2007-11-29 0:22 ` Arnaldo Carvalho de Melo
2007-11-29 0:39 ` Jan Engelhardt
2007-11-29 1:19 ` Ming Lei
2007-11-29 7:38 ` Benny Halevy
2007-11-29 12:31 ` WANG Cong
2007-11-30 11:38 ` Geert Uytterhoeven [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0711301237430.746@anakin \
--to=geert@linux-m68k.org \
--cc=bhalevy@panasas.com \
--cc=jamagallon@ono.com \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@gmail.com \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®