From: "H. Peter Anvin" <hpa@zytor.com>
To: sparclinux@vger.kernel.org
Subject: Re: [klibc] klibc sparc trouble with gcc > 4.0
Date: Tue, 06 Nov 2007 08:30:54 +0000 [thread overview]
Message-ID: <4730263E.2090004@zytor.com> (raw)
In-Reply-To: <20071105135545.GA11201@stro.at>
Oleg Verych wrote:
>> + uint32_t vx;
>> + int dp;
>> +
>> + if (vhi) {
>> + vx = vhi;
>> + dp = 0;
>> + } else {
>> + vx = (uint32_t) v;
>
> `v' is a data in memory, accessed with 32-bits cast, thus operation
> yields high 32-bits part of `v'.
>
Bullsh*t. That would be *(uint32_t *)&v. Casting between integer types
truncate the high bits regardless of platform endianness.
-hpa
next prev parent reply other threads:[~2007-11-06 8:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 13:55 klibc sparc trouble with gcc > 4.0 maximilian attems
2007-11-06 2:49 ` Oleg Verych
2007-11-06 8:30 ` H. Peter Anvin [this message]
2007-11-09 17:59 ` Bernd Zeimetz
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=4730263E.2090004@zytor.com \
--to=hpa@zytor.com \
--cc=sparclinux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.