This file contains hidden or 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
#pragma once | |
#define MEOW_HASH_VERSION 5 | |
#define MEOW_HASH_VERSION_NAME "0.5/calico" | |
// Meow hash v0.5 in C without dependency on special CPU instructions | |
// Ported from https://github.com/cmuratori/meow_hash | |
// Performance on Ryzen 9 3950X | |
// AESNI code = ~16 bytes/cycle |
This file contains hidden or 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
#pragma once | |
#define MEOW_HASH_VERSION 5 | |
#define MEOW_HASH_VERSION_NAME "0.5/calico" | |
// Meow hash v0.5 with ARMv8 Crypto Extension instructions | |
// Ported from https://github.com/cmuratori/meow_hash | |
// Performance on Pine A64 (Cortex-A53, 1.2GHz) | |
// (compiled with clang v10.0 with -O3 -mcpu=cortex-a53) |
This file contains hidden or 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
#ifdef _MSC_VER | |
#define MEOW_API static __declspec(noinline) | |
#include <intrin.h> | |
#else | |
// assume clang | |
#define MEOW_API static __attribute__((noinline)) | |
#define __rdtsc __builtin_readcyclecounter | |
#endif | |
#include "meow_hash_c.h" |
This file contains hidden or 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
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |