Fixed WORD_NTH_HWORD which didn't work correctly before

Thank you testing
This commit is contained in:
2024-04-28 19:09:28 +05:30
parent a0857b9090
commit df16aa9b19

View File

@@ -125,7 +125,7 @@ static const int __i = 1;
@details N should range from 0 to 1 as there are 2 half words in a
word
*/
#define WORD_NTH_HWORD(WORD, N) (((WORD) >> ((N) * 2)) & 0xFFFFFFFF)
#define WORD_NTH_HWORD(WORD, N) (((WORD) >> ((N) * 32)) & 0xFFFFFFFF)
/**
@brief Convert a buffer of bytes to a half word.