XQuartz: Provide fls implementation for Tiger

Regression-from: 30623d6fSigned-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit f5fc5334)
parent 300970f8
......@@ -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