diff options
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index ab31e3c5d..0fff11d09 100644 --- a/include/global.h +++ b/include/global.h @@ -27,6 +27,13 @@ #define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0])) +#define SWAP(a, b, temp) \ +{ \ + temp = a; \ + a = b; \ + b = temp; \ +} + // useful math macros // Converts a number to Q8.8 fixed-point format |