Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-09 15:27:08 +0400
committerVicent Marti <tanoku@gmail.com>2011-07-09 15:27:08 +0400
commitc2db984b1c0a7d16318be670a00b703b2f36aa1e (patch)
tree087f5b03ef9c5541ec20d28e988b98a1e8db1ec9 /src/tsort.c
parent0448310f73c939a94a77c0b312f8c1555f611bd0 (diff)
tsort: Remove unused CLZ methods
Diffstat (limited to 'src/tsort.c')
-rw-r--r--src/tsort.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/tsort.c b/src/tsort.c
index 2c8aab360..bf8bff9d8 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -16,25 +16,6 @@
# define MIN(x,y) (((x) < (y) ? (x) : (y)))
#endif
-#if defined(__GNUC__)
-# define CLZ(x) __builtin_clz(x)
-#elif defined(_MSC_VER)
-# define CLZ(x) _CountLeadingZeros(x)
-#else
-int CLZ(int32_t x)
-{
- int e = 31;
-
- if (!x) return 32;
- if (x&0xFFFF0000) { e -=16; x >>=16; }
- if (x&0x0000FF00) { e -= 8; x >>= 8; }
- if (x&0x000000F0) { e -= 4; x >>= 4; }
- if (x&0x0000000C) { e -= 2; x >>= 2; }
- if (x&0x00000002) { e -= 1; }
- return e;
-}
-#endif
-
typedef int (*cmp_ptr_t)(const void *, const void *);
static int binsearch(void **dst, const void *x, size_t size, cmp_ptr_t cmp)