All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [KJ] BIT macro cleanup
@ 2007-02-08  8:19 walter harms
  2007-02-09 17:45 ` Milind Choudhary
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: walter harms @ 2007-02-08  8:19 UTC (permalink / raw)
  To: kernel-janitors



Milind Choudhary wrote:
> Hi all
> 
> I would like to take up the BIT macro cleanup.
> http://www.fsdev.net/wiki/index.php?title=BIT
> 
> I think include/linux/bitops.h would be the best place to add the BIT macro.
> Let me know if this is fine.
> 

sounds obvious

> There are different variants of BIT using (long|unsigned
> long|unsigned|unsigned char) etc.
> Do we need to create different macros for each type
> Or a single one which takes type as input?

bit operations make only sense on integer, so why not stay with long
and cast it down if needed ? so you have only one function doing so.

please what ever you do do not forget to document that and write some
examples. the linux kernal is large and imho the bigest problem is that
the programmers do not know what nice supportfunctions are available.


my 2 cents,
walter

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [KJ]  BIT macro cleanup
@ 2007-02-07 15:30 Milind Choudhary
  0 siblings, 0 replies; 19+ messages in thread
From: Milind Choudhary @ 2007-02-07 15:30 UTC (permalink / raw)
  To: kernel-janitors

Hi all

I would like to take up the BIT macro cleanup.
http://www.fsdev.net/wiki/index.php?title=BIT

I think include/linux/bitops.h would be the best place to add the BIT macro.
Let me know if this is fine.

There are different variants of BIT using (long|unsigned
long|unsigned|unsigned char) etc.
Do we need to create different macros for each type
Or a single one which takes type as input?
Thoughts.

Milind A Choudhary
Pune-India
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-02-21 16:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-08  8:19 [KJ] BIT macro cleanup walter harms
2007-02-09 17:45 ` Milind Choudhary
2007-02-09 17:55 ` Jaco Kroon
2007-02-20 18:28 ` Milind Choudhary
2007-02-20 19:33 ` Richard Knutsson
2007-02-20 20:30 ` Milind Choudhary
2007-02-21  5:56 ` Richard Knutsson
2007-02-21  9:24 ` Milind Choudhary
2007-02-21  9:39 ` Richard Knutsson
2007-02-21 10:46 ` Milind Choudhary
2007-02-21 11:28 ` Richard Knutsson
2007-02-21 11:59 ` Richard Knutsson
2007-02-21 12:02 ` Darren Jenkins
2007-02-21 12:04 ` Darren Jenkins
2007-02-21 13:26 ` Milind Choudhary
2007-02-21 14:02 ` Milind Choudhary
2007-02-21 14:45 ` Håkon Løvdal
2007-02-21 16:07 ` Richard Knutsson
  -- strict thread matches above, loose matches on Subject: below --
2007-02-07 15:30 Milind Choudhary

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.