Skip to content

Instantly share code, notes, and snippets.

View raymontag's full-sized avatar

GrayFox raymontag

  • Germany
View GitHub Profile
@raymontag
raymontag / Makefile
Created January 8, 2018 07:53 — forked from lattera/Makefile
Spectre example code
PROG= spectre
SRCS= spectre.c
MAN=
.include <bsd.prog.mk>
@raymontag
raymontag / spectre.c
Created January 4, 2018 19:21 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif