All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@redhat.com>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [RFC] Optimize __arch_swab32 and __arch_swab16
Date: Thu, 11 Aug 2011 10:45:42 +0200	[thread overview]
Message-ID: <m34o1ouyix.fsf@hase.home> (raw)
In-Reply-To: <OF9F5D0B06.A12659DA-ONC12578E9.002B23BB-C12578E9.002D304C__34569.7653633126$1313050887$gmane$org@transmode.se> (Joakim Tjernlund's message of "Thu, 11 Aug 2011 10:13:34 +0200")

Joakim Tjernlund <joakim.tjernlund@transmode.se> writes:

> unsigned short my__arch_swab16(unsigned short value)
> {
> 	__asm__("rlwimi %0,%0,16,0x00ff0000"
> 		: "+r" (value));

You are creating a value that does not fit in a short.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

       reply	other threads:[~2011-08-11  8:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OF9F5D0B06.A12659DA-ONC12578E9.002B23BB-C12578E9.002D304C__34569.7653633126$1313050887$gmane$org@transmode.se>
2011-08-11  8:45 ` Andreas Schwab [this message]
2011-08-11  8:51   ` [RFC] Optimize __arch_swab32 and __arch_swab16 Joakim Tjernlund
2011-08-11  8:56   ` David Laight
2011-08-11  9:23     ` Joakim Tjernlund
2011-08-11  9:29       ` David Laight
2011-08-11  9:43         ` Joakim Tjernlund
2011-08-11  8:13 Joakim Tjernlund

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=m34o1ouyix.fsf@hase.home \
    --to=schwab@redhat.com \
    --cc=joakim.tjernlund@transmode.se \
    --cc=linuxppc-dev@ozlabs.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.