[libc] Rewrite byte-swapping code

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-03-02 16:25:53 +00:00
parent 8ab4b00442
commit 01d16d821f
9 changed files with 154 additions and 152 deletions

View File

@@ -136,7 +136,7 @@ static const u16 Sbox[256] = {
*/
static inline u16 S ( u16 v )
{
return Sbox[v & 0xFF] ^ swap16 ( Sbox[v >> 8] );
return Sbox[v & 0xFF] ^ bswap_16 ( Sbox[v >> 8] );
}
/**