Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-21fa
project05b
Commits
35ec9484
Commit
35ec9484
authored
4 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Type fixes
parent
3472e899
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cache_timing.c
+4
-5
src/cache_timing.c
with
4 additions
and
5 deletions
+4
-5
src/cache_timing.c
View file @
35ec9484
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "util.h"
const
uint64_t
REPEATS
=
100000
;
int
main
()
{
uint64_t
min_miss
=
INT64_MAX
;
uint64_t
max_hit
=
0
.
0
;
uint64_t
min_miss
=
U
INT64_MAX
;
uint64_t
max_hit
=
0
;
// TODO: Implement the algorithm as described in the specification here
printf
(
"min miss = %
ld
\n
"
,
min_miss
);
printf
(
"max hit = %
ld
\n
"
,
max_hit
);
printf
(
"min miss = %
"
PRIu64
"
\n
"
,
min_miss
);
printf
(
"max hit = %
"
PRIu64
"
\n
"
,
max_hit
);
}
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help