mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 13:11:11 +03:00
[libc] Rewrite byte-swapping code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user