Skip to content

Instantly share code, notes, and snippets.

View gunrot's full-sized avatar

Gunnar Roth gunrot

  • Fürth, Germany
View GitHub Profile
@teknoman117
teknoman117 / constexpr_string_hash.cpp
Last active February 7, 2025 18:38
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