Skip to content

Instantly share code, notes, and snippets.

View adamjs's full-sized avatar
🤠
Wranglin' code

Adam Simmons adamjs

🤠
Wranglin' code
View GitHub Profile
@teknoman117
teknoman117 / constexpr_string_hash.cpp
Last active June 14, 2018 21:45
MurmurHash2 as a C++11 Constant Expression for compiler generated hashes of constant strings
/*
* Copyright (c) 2018 Nathan Lewis <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright