Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
adfa48b9
Commit
adfa48b9
authored
Jun 13, 2014
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccan/htable: fix tools warning for 64-bit systems.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
1b11d06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ccan/htable/tools/speed.c
ccan/htable/tools/speed.c
+3
-2
No files found.
ccan/htable/tools/speed.c
View file @
adfa48b9
...
...
@@ -127,7 +127,8 @@ static size_t worst_run(struct htable *ht, size_t *deleted)
int
main
(
int
argc
,
char
*
argv
[])
{
struct
object
*
objs
;
size_t
i
,
j
,
num
,
deleted
;
unsigned
int
i
,
j
;
size_t
num
,
deleted
;
struct
timeabs
start
,
stop
;
struct
htable_obj
ht
;
bool
make_dumb
=
false
;
...
...
@@ -305,7 +306,7 @@ int main(int argc, char *argv[])
printf
(
"Details: delete markers %zu, perfect %.0f%%
\n
"
,
count_deleted
(
&
ht
.
raw
),
perfect
(
&
ht
.
raw
)
*
100
.
0
/
ht
.
raw
.
elems
);
i
=
worst_run
(
&
ht
.
raw
,
&
deleted
);
printf
(
"Details: worst run %
z
u (%zu deleted)
\n
"
,
i
,
deleted
);
printf
(
"Details: worst run %u (%zu deleted)
\n
"
,
i
,
deleted
);
printf
(
"Lookup after churn & spread (match): "
);
fflush
(
stdout
);
...
...
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