include: Add support for byteorder/endianness conversion
authorRahul Pathak <rpathak@ventanamicro.com>
Thu, 2 Feb 2023 04:44:25 +0000 (10:14 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 8 Feb 2023 12:40:39 +0000 (18:10 +0530)
commit09b34d8cca513dbd4d52ffd6d3d5b6dedeea516b
tree5f3ff0761f95a468e66fd2ee4de2a9512e920c9d
parent642f3de9b947b747a4fe0eaae348f1c55f1ac409
include: Add support for byteorder/endianness conversion

Define macros general byteorder conversion
Define functions for endianness conversion
from general byteorder conversion macros

Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_byteorder.h [new file with mode: 0644]