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
a37ba771
Commit
a37ba771
authored
4 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Use size_t where relevant
parent
d5516792
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cache_timing.c
+1
-1
src/cache_timing.c
src/index_guesser.c
+2
-2
src/index_guesser.c
with
3 additions
and
3 deletions
+3
-3
src/cache_timing.c
View file @
a37ba771
...
...
@@ -4,7 +4,7 @@
#include "util.h"
const
uint64
_t
REPEATS
=
100000
;
const
size
_t
REPEATS
=
100000
;
int
main
()
{
uint64_t
min_miss
=
UINT64_MAX
;
...
...
This diff is collapsed.
Click to expand it.
src/index_guesser.c
View file @
a37ba771
...
...
@@ -6,8 +6,8 @@
#include "stage2.h"
const
uint64
_t
MIN_CHOICE
=
1
;
const
uint64
_t
MAX_CHOICE
=
256
;
const
size
_t
MIN_CHOICE
=
1
;
const
size
_t
MAX_CHOICE
=
256
;
static
inline
page_t
*
init_pages
(
void
)
{
return
calloc
(
MAX_CHOICE
,
sizeof
(
page_t
));
...
...
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