Skip to content
Snippets Groups Projects
Commit a112c5a4 authored by Griffin, Matt J Dr (PG/R - Comp Sci & Elec Eng)'s avatar Griffin, Matt J Dr (PG/R - Comp Sci & Elec Eng)
Browse files

attempt to force ex 2 and ex 13 to inline, fix typos

parent 9316159c
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,9 @@
__declspec(dllexport)
void optimal_solution_v01(size_t x) {
if (x < array1_size) {
uint8_t v = array1[x] * 512;
_mm_lfence();
temp &= array2[v];
}
if (x < array1_size) {
uint8_t v = array1[x] * 512;
_mm_lfence();
temp &= array2[v];
}
}
#include "../ex_main.h"
__inline int is_x_safe(size_t x) { if (x < array1_size) return 1; return 0; }
__forceinline int is_x_safe(size_t x) { if (x < array1_size) return 1; return 0; }
__declspec(dllexport)
void victim_function_v13(size_t x) {
......
#include "../ex_main.h"
void leakByteLocalFunction_v02(uint8_t k) {
__forceinline void leakByteLocalFunction_v02(uint8_t k) {
temp &= array2[(k)* 512];
}
......
#include "../ex_main.h"
__declspec(dllexport)
void optimal_sol_v07(size_t x) {
void victim_function_v07(size_t x) {
static size_t last_x = 0;
if (x == last_x)
temp &= array2[array1[x] * 512];
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment