aboutsummaryrefslogtreecommitdiff
path: root/shared/util.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-28 09:57:50 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-28 09:57:50 +0200
commit1cac46e7701ef2783aea13d55261582f4d91f2fa (patch)
treeabcd22854d5a9c5303cccc5ba1ccca73e7b8bbbf /shared/util.h
parent89e652af2506f7cf7854ce2e6f5b9b97423d1d40 (diff)
working janky protocol!
Diffstat (limited to 'shared/util.h')
-rw-r--r--shared/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/util.h b/shared/util.h
index f39ff34..94a3dfe 100644
--- a/shared/util.h
+++ b/shared/util.h
@@ -2,3 +2,5 @@
#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);