Skip to contentSkip to conversation

significance of using 2kb long byte_rev_table in lib/bitrev.c

DISCUSSION Soumyadip Das Mahapatra 2 participants 3 messages May 19, 2008 – May 20, 2008

lore
Share & tools
lore
#0 lore raw

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

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#1 lore raw
Quoted 3 lines · Soumyadip Das Mahapatra

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

#2 lore raw
Quoted 9 lines · Harvey Harrison
Quoted 3 lines · Soumyadip Das Mahapatra

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

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.