Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
c2db984b
Commit
c2db984b
authored
Jul 09, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tsort: Remove unused CLZ methods
parent
0448310f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
src/tsort.c
+0
-19
No files found.
src/tsort.c
View file @
c2db984b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment