1
0
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:
Thomas Heijligen
2022-04-21 13:29:33 +02:00
committed by Thomas Heijligen
parent 1866deb06d
commit 7228ce007c
4 changed files with 82 additions and 53 deletions

View File

@ -16,6 +16,7 @@
*/
#include "platform.h"
#include "platform/swap.h"
/* convert cpu native endian to little endian */
___return_swapped(cpu_to_le, 8)

View File

@ -16,6 +16,7 @@
*/
#include "platform.h"
#include "platform/swap.h"
/* convert cpu native endian to little endian */
___return_same(cpu_to_le, 8)