Skip to content

Instantly share code, notes, and snippets.

🕶️
DEAL WITH IT.

Cameron Kaiser classilla

🕶️
DEAL WITH IT.
View GitHub Profile
@miniupnp
miniupnp / spectre.c
Last active Sep 1, 2018 — forked from jedisct1/spectre.c
Spectre example code - x86 / x86_64 and PowerPC
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#if defined(__POWERPC__)
#include <ppc_intrinsics.h>
#else
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
You can’t perform that action at this time.