]> wimlib.net Git - wimlib/blobdiff - src/xpress-comp.c
Compression code cleanups
[wimlib] / src / xpress-comp.c
index aae2a4a002f7a5155ffd792cbdedfcd32f25fb23..b8e655f756759306789836a94763d1b049f13620 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-static inline u32 bsr32(u32 n)
-{
-#if defined(__x86__) || defined(__x86_64__)
-       asm("bsrl %0, %0;"
-                       : "=r"(n)
-                       : "0" (n));
-       return n;
-#else
-       u32 pow = 0;
-       while ((n >>= 1) != 0)
-               pow++;
-       return pow;
-#endif
-}
-
-
 /*
  * Writes @match, which is a match given in the intermediate representation for
  * XPRESS matches, to the output stream @ostream.