bdk: types: refactor and add size defines

This commit is contained in:
CTCaer
2021-10-01 14:33:55 +03:00
parent a1910156d8
commit 7e4c71748f
2 changed files with 54 additions and 22 deletions

View File

@@ -51,11 +51,6 @@ typedef enum
ERR_EXCEPTION = BIT(31),
} hekate_errors_t;
#define byte_swap_32(num) ((((num) >> 24) & 0xff) | (((num) << 8) & 0xff0000) | \
(((num) >> 8 )& 0xff00) | (((num) << 24) & 0xff000000))
#define byte_swap_16(num) ((((num) >> 8) & 0xff) | (((num) << 8) & 0xff00))
typedef struct _cfg_op_t
{
u32 off;