Move get_unaligned_le32() macros to platform.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-07-15 20:22:25 +02:00
parent 08dfafc437
commit 2c1258c620
3 changed files with 17 additions and 9 deletions

View File

@@ -40,10 +40,6 @@
*/
#include "tls.h"
/* TODO: grep for this and move to libbb */
#define get_unaligned_be32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_BE32(v); })
// The lookup-tables are marked const so they can be placed in read-only storage instead of RAM
// The numbers below can be computed dynamically trading ROM for RAM -
// This can be useful in (embedded) bootloader applications, where ROM is often limited.