Skip to content

Instantly share code, notes, and snippets.

View miniupnp's full-sized avatar
💭
coding

Thomas BERNARD miniupnp

💭
coding
View GitHub Profile
@miniupnp
miniupnp / spectre.c
Last active September 1, 2018 05:11 — forked from jedisct1/spectre.c
Spectre example code - x86 / x86_64 and PowerPC
#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