Skip to content

Instantly share code, notes, and snippets.

View synchro--'s full-sized avatar

RAIN synchro--

  • Finance ML Research axyon.ai
  • Bologna, Italy.
  • LinkedIn in/aasalman
View GitHub Profile
@ErikAugust
ErikAugust / spectre.c
Last active August 2, 2024 01:59
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