This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -march=x86-64-v3 -O3 -o bench bench.c | |
// src taken from: https://github.com/skeeto/branchless-utf8/blob/master/test/benchmark.c | |
#define _POSIX_C_SOURCE 200112L | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <stddef.h> | |
#include <unistd.h> // alarm() |