Commit f5fc5334 authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia
Browse files

XQuartz: Provide fls implementation for Tiger

Regression-from: 30623d6f

Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
parent e0097ce9
......@@ -310,6 +310,20 @@ xq_asl_init(void)
#define fls(v) xq_fls(v)
static inline int fls(int value) {
unsigned int b, v;
v = *((unsigned int *)&value);
for(b=0 ; v ; v >>= 1 , b++);
return b;
xq_asl_log_fd(aslclient asl, aslmsg msg, int level, int fd)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment