lib function by Dron0Gus

This commit is contained in:
rusefi 2020-04-06 11:29:40 -04:00
parent 607692695e
commit 988ee244f3
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#define SWAP_UINT32(x) ((((x) >> 24) & 0xff) | (((x) << 8) & 0xff0000) | (((x) >> 8) & 0xff00) | (((x) << 24) & 0xff000000))
#define BIT(n) (UINT32_C(1) << (n))
// human-readable IDs start from 1 while computer-readbale indexes start from 0
#define ID2INDEX(id) ((id) - 1)