aboutsummaryrefslogtreecommitdiff
path: root/shared/util.h
blob: 94a3dfef3364d6831fc014175efd73c685d0c334 (plain)
1
2
3
4
5
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);