Small fixes

This commit is contained in:
2023-11-02 20:35:47 +00:00
parent 4990d93a1c
commit 99b0ebdfa6
2 changed files with 4 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ typedef enum
#define SWORD_SIZE sizeof(s_word)
// Macros to extract the nth byte or nth hword from a word
#define WORD_NTH_BYTE(WORD, N) (((WORD) >> ((N)*8)) & 0xff)
#define WORD_NTH_BYTE(WORD, N) (((WORD) >> ((N)*8)) & 0xFF)
#define WORD_NTH_HWORD(WORD, N) (((WORD) >> ((N)*2)) & 0xFFFFFFFF)
// Assume array contains 4 bytes.