Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
c34d76b1
Commit
c34d76b1
authored
Oct 23, 2005
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(display): Use two decimal places.
Rev: src/nettle/examples/nettle-benchmark.c:1.17
parent
3b390e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/nettle-benchmark.c
examples/nettle-benchmark.c
+3
-3
No files found.
examples/nettle-benchmark.c
View file @
c34d76b1
...
@@ -176,14 +176,14 @@ static void
...
@@ -176,14 +176,14 @@ static void
display
(
const
char
*
name
,
const
char
*
mode
,
unsigned
block_size
,
display
(
const
char
*
name
,
const
char
*
mode
,
unsigned
block_size
,
double
time
)
double
time
)
{
{
printf
(
"%18s %11s %7.
1
f"
,
printf
(
"%18s %11s %7.
2
f"
,
name
,
mode
,
name
,
mode
,
BENCH_BLOCK
/
(
time
*
1048576
.
0
));
BENCH_BLOCK
/
(
time
*
1048576
.
0
));
if
(
frequency
>
0
.
0
)
if
(
frequency
>
0
.
0
)
{
{
printf
(
" %11.
1
f"
,
time
*
frequency
/
BENCH_BLOCK
);
printf
(
" %11.
2
f"
,
time
*
frequency
/
BENCH_BLOCK
);
if
(
block_size
>
0
)
if
(
block_size
>
0
)
printf
(
" %12.
1
f"
,
time
*
frequency
*
block_size
/
BENCH_BLOCK
);
printf
(
" %12.
2
f"
,
time
*
frequency
*
block_size
/
BENCH_BLOCK
);
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
...
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