commit | f7eb8c704cf3456db10c9671eaa15ddb76dd19f2 | [log] [tgz] |
---|---|---|
author | Mike Dunn <mikedunn@newsguy.com> | Fri Apr 12 11:59:17 2013 -0700 |
committer | Marek Vasut <marex@denx.de> | Sun May 05 23:47:04 2013 +0200 |
tree | 710ead4a7e11dcf2e1ff2088c51170fa0589206f | |
parent | 9c85e8adbe817f1331c37d4108da8fbd4279be32 [diff] |
lib: import bitrev library from the linux kernel This patch adds the bitrev library from the linux kernel. This is a simple algorithm that uses an 8 bit look-up table to reverse the bits in data types of 8, 16, or 32 bit widths. The docg4 nand flash driver uses it. [port from linux kernel v3.9 commit 7ee32a6d30d1c8a3b7a07a6269da8f0a08662927] [originally added: v2.6.20 by commit a5cfc1ec58a07074dacb6aa8c79eff864c966d12] Signed-off-by: Mike Dunn <mikedunn@newsguy.com>