diff options
Diffstat (limited to 'shared/util.h')
-rw-r--r-- | shared/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/util.h b/shared/util.h new file mode 100644 index 0000000..94a3dfe --- /dev/null +++ b/shared/util.h @@ -0,0 +1,6 @@ +#pragma once + +#define WS_MIN(a, b) (((a) < (b)) ? (a) : (b)) +#define WS_MAX(a, b) (((a) > (b)) ? (a) : (b)) + +unsigned int ws_log16(unsigned int x); |