From: Adrian Bunk <bunk@stusta.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] argument type of generic_fls()
Date: Sat, 13 Aug 2005 14:12:14 +0000 [thread overview]
Message-ID: <20050813141214.GA8393@stusta.de> (raw)
In-Reply-To: <42FDF8E3.5010403@bfs.de>
[-- Attachment #1: Type: text/plain, Size: 814 bytes --]
On Sat, Aug 13, 2005 at 03:42:59PM +0200, walter harms wrote:
> hi list,
Hi Walter,
> after the log2 discussion i was looking for log2 in kernel. i found
> long_log2() in page_alloc.c. What the author actualy wanted was fls().
> To my confusion the generic_fls() searches only 32 bit but has an
> argument of type int (i would expect uint32).
> Will it create confusion with 64bit int systems ? if anyone considers
> these a problem i would add a flsl() function and replace the int with
> uint32.
ints stay 32bit on 64bit systems.
> re
> walter
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
prev parent reply other threads:[~2005-08-13 14:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-13 13:42 [KJ] argument type of generic_fls() walter harms
2005-08-13 14:12 ` Adrian Bunk [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=20050813141214.GA8393@stusta.de \
--to=bunk@stusta.de \
--cc=kernel-janitors@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.