MUM-Hash explained in plain terms means understanding the hash that turns one multiplication into a full mix, a design from 2018 that hashes with a single 64-bit multiply and a fold. The central question is why one multiply would beat a chain of shifts and xors when the chain looks more thorough, and the answer is that a multiply touches every bit pair at once, so MUM-Hash gives hash tables a faster mix in fewer instructions, and that economy is the whole point of the design.
MUM-Hash is a fast non-cryptographic hash function created by Vladimir Makarov, built on the MUM operation, which stands for Multiply and Mix. It turns a key into a 64-bit value by multiplying 64-bit words into a 128-bit product and adding the two halves together, and it is built on the idea that a hash should be as small as its fastest operation, which means the design is meant for 64-bit CPUs above all, and that focus is what makes it unlike the hashes of its era.
This article explains what MUM-Hash is, how it works, and where it runs in the real world.
Key takeaways
- MUM-Hash is a fast hash from 2018, by Vladimir Makarov.
- MUM stands for Multiply and Mix.
- It mixes with one 64-by-64-bit multiply per step.
- It passes all SMHasher quality tests.
- It inspired the mixing in wyhash and xxHash3.
What MUM-Hash is
MUM-Hash is a hash that turns a key into a 64-bit value with one core operation, and that smallness is what makes it unusual among hashes. Each word of input passes through a multiply-and-mix step, which means the hash spreads bits with a single multiplication, and because a multiply mixes more bit pairs than an xor, the result is well spread after very few steps.
Its signature feature is the fold. Most hashes mix with a chain of shifts and xors, but MUM-Hash multiplies two 64-bit words into a 128-bit product and adds the two halves together, which means every output bit depends on many input bits, and because the fold happens on every step, the mixing builds up as the key flows in.
The design was a reaction to the size of the famous hashes. CityHash and SpookyHash were fast but large, so Makarov asked whether a single multiply could do the same work, because a small hash is easier to audit and easier to port, and that practicality is what made MUM-Hash worth publishing.
It became one of the best-known multiply-based hashes in the world, and it is named in every discussion of the field. MUM-Hash passes every SMHasher test, its mixing step was adopted by wyhash and xxHash3, and it is still the first example engineers meet when they learn that a multiply can hash, which means the design survives as a tool even though it is not a household name.
Its most famous property is its fast startup. MUM-Hash is particularly quick on small keys, which means it suits hash tables where most keys are short, and because short keys dominate real programs, that shortcut is where the speed is won.
Our guide to wyhash explains the hash that adopted its mixing step, and our guide to MurmurHash explains the earlier multiply-and-rotate hash it is measured against.
How MUM-Hash works
Everything starts with the seed, which sets the initial state. MUM-Hash takes a 64-bit seed and mixes it into the starting value, which means the hash depends on the seed, and because the seed is caller-chosen, the same key gives different hashes under different seeds.
Each step begins with a word of input, which is mixed by the multiply. MUM-Hash takes the next 64-bit word, multiplies it with the running state into a 128-bit product, which means fresh data arrives at every step, and because the multiply is wide, the mixing spreads across all 64 output bits at once.
The fold is what makes the design work as a whole. After the multiply, MUM-Hash adds the high and low halves of the 128-bit product together, which means the value is scrambled thoroughly, and because the fold is a single addition, the mixing costs almost nothing.
The state spreads the effect further. The folded value is xored with the running state as the words are consumed, which means each word mixes with the ones before it, and because the state carries the history, the final value reflects the whole input.
The tail is what turns the last bytes into a hash. MUM-Hash handles the final one to seven bytes with a dedicated routine, which means short remainders are mixed just as carefully as full words, and because the tail is exact, no input is ever hashed loosely.
The result comes from the folded state, read out as 64 bits. MUM-Hash outputs the running value directly as the hash, which means the result is a fixed size whatever the input, and that size is exactly what a hash table needs for its bucket index.

Comparing MUM-Hash with other multiply hashes
MUM-Hash is one of several fast hashes built on multiplication, and each was built with a different emphasis. wyhash is the multiply-and-fold hash tuned for short keys, CityHash64 is the Google hash built for general use, and MUM-Hash is the one built on a single multiply-and-mix step, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | MUM-Hash | wyhash | CityHash64 |
|---|---|---|---|
| Output size | 64 bits | 64 bits | 64 bits |
| Core step | Multiply and mix | Multiply and fold | Multiply and rotate |
| Seed | Optional | Secret array | Seed |
| Designed for | 64-bit CPUs | Any CPU | 64-bit CPUs |
| Best for | Hash tables | Short keys | General hashing |
The practical result is that MUM-Hash is the right choice for hash tables, wyhash suits short keys, and CityHash64 fits general hashing instead.
Where MUM-Hash is used
Hash tables use it to hash short keys quickly. A table that looks up millions of small keys needs a hash with a fast startup, because the first step dominates the cost, and that startup is the reason MUM-Hash earns its keep in table code.
Compilers use it inside GCC tooling. Makarov works on the GCC compiler, and MUM-Hash runs in the tools around it, because a compiler hashes symbols and strings constantly, and that workload is the reason the design was built for 64-bit machines.
Hash libraries use it as a building block. The fasthash library ships MUM-Hash alongside the other fast hashes, because a library needs a small, clean option, and that simplicity is the reason MUM-Hash appears in hash collections.
Benchmarking uses it as a multiply reference. Engineers still quote MUM-Hash when they discuss how little work a hash needs, because it is the clearest example of one multiply doing the job, and that number shapes how new hashes are measured.
Teaching uses it as the multiply-and-mix example. Courses introduce MUM-Hash when they explain that a multiply mixes more than an xor, because it is the clearest case of the idea in a real design, and a student who understands MUM-Hash understands why multipliers matter in hash design.
Strengths and limits
The greatest strength of MUM-Hash is its size. A hash built on one multiply is easy to audit, easy to port and easy to trust, and that strength is real, measured in the SMHasher tests it passes and confirmed by the designs that borrowed its step.
It is also a strength that the design is fast on small keys. A hash with a fast startup suits the keys real programs actually hash, and that fit is worth more than cleverness in a field where a hash that is slow on short keys is a hash nobody adopts.
The limits are real, though, and the biggest is that it is not cryptographic. MUM-Hash was never designed to resist an attacker, which means it must never guard a secret or a key, and a system that needs a strong hash must use a cryptographic design instead.
MUM-Hash checklist
- Use MUM-Hash for hash tables, never for security or passwords.
- Remember it outputs 64 bits from a multiply and a fold.
- Note the seed is optional and caller-chosen.
- Compare it with wyhash to see two kinds of multiply hash.
- Study the fold, which is what mixes the 128-bit product.
- Check the key length, since short keys are its strength.
- Keep real secrets behind cryptographic hashes.
- Read the mum-hash notes to see how the step was built.
- Choose a cryptographic hash when untrusted input must be hashed.
Frequently asked questions
What is MUM-Hash in simple terms?
It is a 2018 fast hash that turns any key into a 64-bit value by multiplying words and adding the halves of the 128-bit product together.
Who created MUM-Hash?
Vladimir Makarov, who built it around the multiply-and-mix operation and released it on Mother’s Day.
How is MUM-Hash different from wyhash?
Both mix with multiplies, but MUM-Hash folds with an addition while wyhash folds with an xor and a secret array.
Is MUM-Hash still secure?
It is fast and well tested, but it is a non-cryptographic hash, so it must never guard secrets or signatures.
Where is MUM-Hash used?
In hash tables, in GCC tooling, in the fasthash library, in benchmarking, and in teaching about multiply-based hashing.
When should I use MUM-Hash?
When you need a fast hash for short keys, when you want a tiny auditable design, or when you study multiply-and-mix hashing.
The bottom line
MUM-Hash explained in one line is this: the multiply-and-mix hash, a 2018 design of one multiply and a fold that showed a single operation could hash and taught the field that multipliers mix best.
It is proof that one multiply is enough, and the reason it still matters is that every fast hash designed since has been judged partly by the lesson MUM-Hash taught.
This article is general information about how MUM-Hash works, not advice about choosing encryption for a particular device or system.







