From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: vda@port.imtp.ilyichevsk.odessa.ua
Cc: linux-kernel@vger.kernel.org, mpm@selenic.com, yoshfuji@linux-ipv6.org
Subject: Re: [PATCH] introduce generic 64bit rotations and i386 asm optimized version
Date: Tue, 19 Apr 2005 15:46:42 +0900 (JST) [thread overview]
Message-ID: <20050419.154642.111848378.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <200504190918.10279.vda@port.imtp.ilyichevsk.odessa.ua>
In article <200504190918.10279.vda@port.imtp.ilyichevsk.odessa.ua> (at Tue, 19 Apr 2005 09:18:10 +0300), Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> says:
> diff -urpN 2.6.12-rc2.1.be/include/linux/bitops.h 2.6.12-rc2.2.ror/include/linux/bitops.h
> --- 2.6.12-rc2.1.be/include/linux/bitops.h Mon Apr 18 22:55:10 2005
> +++ 2.6.12-rc2.2.ror/include/linux/bitops.h Tue Apr 19 00:25:28 2005
> @@ -41,7 +41,7 @@ static inline int generic_ffs(int x)
> * fls: find last bit set.
> */
>
> -static __inline__ int generic_fls(int x)
> +static inline int generic_fls(int x)
> {
> int r = 32;
>
> @@ -76,7 +76,7 @@ static __inline__ int generic_fls(int x)
> */
> #include <asm/bitops.h>
>
> -static __inline__ int get_bitmask_order(unsigned int count)
> +static inline int get_bitmask_order(unsigned int count)
> {
> int order;
>
Please keep using __inline__, not inline.
> +#ifndef ARCH_HAS_ROL64
> +static inline __u64 rol64(__u64 word, unsigned int shift)
> +{
> + return (word << shift) | (word >> (64 - shift));
> +}
> +#endif
:
> +#ifndef ARCH_HAS_ROR64
> +static inline __u64 ror64(__u64 word, unsigned int shift)
> +{
> + return (word >> shift) | (word << (64 - shift));
> +}
> +#endif
>
> #endif
please use __inline__, in header files.
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
Homepage: http://www.yoshifuji.org/~hideaki/
GPG FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
next prev parent reply other threads:[~2005-04-19 6:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 6:18 Denis Vlasenko
2005-04-19 6:21 ` [PATCH] sha512: replace open-coded be64 conversions Denis Vlasenko
2005-04-19 6:26 ` [PATCH] sha512: use 64bit rotations Denis Vlasenko
2005-04-19 6:28 ` [PATCH] sha512: fix whitespace Denis Vlasenko
2005-04-19 6:31 ` [PATCH] ia64: use 64bit rotations Denis Vlasenko
2005-04-19 9:04 ` [PATCH] sha512: replace open-coded be64 conversions Jesper Juhl
2005-04-19 14:12 ` Denis Vlasenko
2005-04-19 14:41 ` Jesper Juhl
2005-04-19 14:49 ` Denis Vlasenko
2005-04-19 6:46 ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2005-04-19 6:55 ` [PATCH] introduce generic 64bit rotations and i386 asm optimized version Denis Vlasenko
2005-04-19 20:20 ` Domen Puncer
2005-04-20 20:47 ` Ralf Baechle
2005-04-19 19:15 ` Geert Uytterhoeven
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=20050419.154642.111848378.yoshfuji@linux-ipv6.org \
--to=yoshfuji@linux-ipv6.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
--cc=vda@port.imtp.ilyichevsk.odessa.ua \
/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®