mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
platform/swap: move swap inline functions & macros into an own header
These inline functions and macros are only used in platform/endian_(big|little).c and do not need to be compiled into every object which includes `platform.h`. Change-Id: Ib2326e6a4eb5e000a0eace857d040372e2e9e561 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63825 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:

committed by
Thomas Heijligen

parent
1866deb06d
commit
7228ce007c
@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
#include "platform/swap.h"
|
||||
|
||||
/* convert cpu native endian to little endian */
|
||||
___return_swapped(cpu_to_le, 8)
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
#include "platform/swap.h"
|
||||
|
||||
/* convert cpu native endian to little endian */
|
||||
___return_same(cpu_to_le, 8)
|
||||
|
Reference in New Issue
Block a user