Skip to content

Instantly share code, notes, and snippets.

View ipkn's full-sized avatar

Jaeseung Ha ipkn

  • Furiosa A.I.
  • Seoul, Republic of Korea
View GitHub Profile
@filsinger
filsinger / fnv_hash_example.cpp
Created October 1, 2011 06:36
C++11 : FNV-1 and FNV-1a compile-time string hashing
// C++11 32bit FNV-1 and FNV-1a string hasing (Fowler–Noll–Vo hash)
//
// Requires a compiler with C++11 support
// See main(...) for examples
#include <iostream>
#include <cassert>
namespace hash
{