linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* significance of using 2kb long byte_rev_table in lib/bitrev.c
@ 2008-05-19 16:59 Soumyadip Das Mahapatra
  2008-05-20  0:53 ` Harvey Harrison
  0 siblings, 1 reply; 4+ messages in thread
From: Soumyadip Das Mahapatra @ 2008-05-19 16:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: akinobu.mita

Hi,
 	i cant understand the significance of using 2kb size of
bit_rev_table array in lib/bitrev.c
I guess it has something to do with bit reversal of a 32 bit word.
Well it can be done smoothly without using such a long sized array.
I am sending patches regarding this in the following mails.
Please review them.
Thanks :-)

Soumyadip

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

* Re: significance of using 2kb long byte_rev_table in lib/bitrev.c
  2008-05-19 16:59 significance of using 2kb long byte_rev_table in lib/bitrev.c Soumyadip Das Mahapatra
@ 2008-05-20  0:53 ` Harvey Harrison
  2008-05-20 11:05   ` Soumyadip Das Mahapatra
  0 siblings, 1 reply; 4+ messages in thread
From: Harvey Harrison @ 2008-05-20  0:53 UTC (permalink / raw)
  To: Soumyadip Das Mahapatra; +Cc: linux-kernel, akinobu.mita

On Mon, 2008-05-19 at 18:59 +0200, Soumyadip Das Mahapatra wrote:
> Hi,
>  	i cant understand the significance of using 2kb size of
> bit_rev_table array in lib/bitrev.c

It's used in reversing the bits in a byte value as well, which your
patch breaks (see the bitrev8 users)

Harvey



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

* Re: significance of using 2kb long byte_rev_table in lib/bitrev.c
  2008-05-20  0:53 ` Harvey Harrison
@ 2008-05-20 11:05   ` Soumyadip Das Mahapatra
  0 siblings, 0 replies; 4+ messages in thread
From: Soumyadip Das Mahapatra @ 2008-05-20 11:05 UTC (permalink / raw)
  To: Harvey Harrison; +Cc: linux-kernel, akinobu.mita



On Mon, 19 May 2008, Harvey Harrison wrote:

> On Mon, 2008-05-19 at 18:59 +0200, Soumyadip Das Mahapatra wrote:
>> Hi,
>>  	i cant understand the significance of using 2kb size of
>> bit_rev_table array in lib/bitrev.c
>
> It's used in reversing the bits in a byte value as well, which your
> patch breaks (see the bitrev8 users)
>
> Harvey

Well you can do that modifying the value of k. I commented these in the
program.

Soumya

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

* significance of using 2kb long byte_rev_table in lib/bitrev.c
@ 2008-05-19 17:21 Soumyadip Das Mahapatra
  0 siblings, 0 replies; 4+ messages in thread
From: Soumyadip Das Mahapatra @ 2008-05-19 17:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: akinobu.mita


Hi,
 	i cant understand the significance of using 2kb size of
bit_rev_table array in lib/bitrev.c
I guess it has something to do with bit reversal of a 32 bit word.
Well it can be done smoothly without using such a long sized array.
I am sending patches regarding this in the following mails.
Please review them.
Thanks :-)

Soumyadip

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

end of thread, other threads:[~2008-05-20 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 16:59 significance of using 2kb long byte_rev_table in lib/bitrev.c Soumyadip Das Mahapatra
2008-05-20  0:53 ` Harvey Harrison
2008-05-20 11:05   ` Soumyadip Das Mahapatra
2008-05-19 17:21 Soumyadip Das Mahapatra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).