Skip to content

Instantly share code, notes, and snippets.

View jesta88's full-sized avatar

Jeremie St-Amand jesta88

View GitHub Profile
@jesta88
jesta88 / MetroHash.cs
Created September 4, 2017 07:55
Fastest C# MetroHash
using System.Text;
namespace Engine.Mathematics
{
public static unsafe class MetroHash
{
private const ulong K0 = 0xD6D018F5;
private const ulong K1 = 0xA2AA033B;
private const ulong K2 = 0x62992FC1;
private const ulong K3 = 0x30BC5B29;
@jesta88
jesta88 / Config.cs
Last active September 2, 2017 17:14
C# Config Vars
using System.IO;
using System.Text;
using System.Collections.Generic;
public static class Config
{
public const string TypeUint8 = "uint8";
public const string TypeUint16 = "uint16";
public const string TypeUint32 = "uint32";
public const string TypeUint64 = "uint64";