From: rabin@rab.in (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] bitops: remove condition code clobber for CLZ
Date: Tue, 11 Jan 2011 23:12:05 +0530 [thread overview]
Message-ID: <1294767725-14814-1-git-send-email-rabin@rab.in> (raw)
The CLZ instruction does not alter the condition flags, so remove the
"cc" clobber from the inline asm for fls().
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
arch/arm/include/asm/bitops.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h
index 338ff19..7b1bb2b 100644
--- a/arch/arm/include/asm/bitops.h
+++ b/arch/arm/include/asm/bitops.h
@@ -285,7 +285,7 @@ static inline int fls(int x)
if (__builtin_constant_p(x))
return constant_fls(x);
- asm("clz\t%0, %1" : "=r" (ret) : "r" (x) : "cc");
+ asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
ret = 32 - ret;
return ret;
}
--
1.7.2.3
next reply other threads:[~2011-01-11 17:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 17:42 Rabin Vincent [this message]
2011-01-11 17:48 ` [PATCH] bitops: remove condition code clobber for CLZ Nicolas Pitre
2011-01-11 18:39 ` Russell King - ARM Linux
2011-01-11 18:51 ` Nicolas Pitre
2011-01-11 18:53 ` Russell King - ARM Linux
2011-01-11 22:28 ` Nicolas Pitre
2011-01-12 14:18 ` Rabin Vincent
2011-01-12 14:22 ` Russell King - ARM Linux
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=1294767725-14814-1-git-send-email-rabin@rab.in \
--to=rabin@rab.in \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox