LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Miller, Mike (OS Dev)" <Mike.Miller@hp.com>
To: "Mike Miller (OS Dev)" <mikem@beardog.cca.cpqcorp.net>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: <jens.axboe@oracle.com>, <linux-kernel@vger.kernel.org>,
<linux-scsi@vger.kernel.org>, <gregkh@novell.com>
Subject: RE: [Patch 1/2] cciss: fix for 2TB support
Date: Thu, 22 Feb 2007 21:22:19 -0000 [thread overview]
Message-ID: <226E1C65E4F6164E8EA5FD3CC913AE8C5C80F7@G3W0639.americas.hpqcorp.net> (raw)
In-Reply-To: <20070222201809.GA1530@beardog.cca.cpqcorp.net>
> -----Original Message-----
> From: Mike Miller (OS Dev) [mailto:mikem@beardog.cca.cpqcorp.net]
>
> Andrew,
> Using this test program and changing the type of x to int,
> long, long long signed and unsigned the comparison always
> worked on x86, x86_64, and ia64. It looks to me like the
> comparsion will always do what we expect. Unless you see some
> other problem.
>
>
> #include <stdio.h>
>
> int main(int argc, char *argv[])
> {
> unsigned long long x;
>
> x = 0x00000000ffffffff;
>
> printf(sizeof(x) == 8 ?
> "x = %lld, sizeof(x) = %d\n" :
> "x = %ld, sizeof(x) = %d\n", x, sizeof(x));
> if (x == 0xffffffff)
> printf("equal\n");
> else
> printf("not equal\n");
>
> }
>
> -- mikem
>
BTW: also changed x to be 8 f's, 16 f's, and 8 and 8 as shown.
prev parent reply other threads:[~2007-02-22 21:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 21:10 [Patch 1/2] cciss: fix for 2TB support Mike Miller (OS Dev)
2007-02-22 3:14 ` Andrew Morton
2007-02-22 7:31 ` [PATCH] Speedup divides by cpu_power in scheduler Eric Dumazet
2007-02-22 7:56 ` Ingo Molnar
2007-02-22 8:19 ` [PATCH, take 2] " Eric Dumazet
2007-02-22 8:19 ` Ingo Molnar
2007-02-22 16:51 ` [Patch 1/2] cciss: fix for 2TB support Mike Miller (OS Dev)
2007-02-22 21:24 ` Andrew Morton
2007-02-22 21:41 ` James Bottomley
2007-02-22 22:02 ` Mike Miller (OS Dev)
2007-02-22 22:06 ` James Bottomley
2007-02-23 20:52 ` Mike Miller (OS Dev)
2007-02-24 6:35 ` Andrew Morton
2007-02-22 20:18 ` Mike Miller (OS Dev)
2007-02-22 21:22 ` Miller, Mike (OS Dev) [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=226E1C65E4F6164E8EA5FD3CC913AE8C5C80F7@G3W0639.americas.hpqcorp.net \
--to=mike.miller@hp.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@novell.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mikem@beardog.cca.cpqcorp.net \
/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;
as well as URLs for NNTP newsgroup(s).