Skip to content

Instantly share code, notes, and snippets.

@belavina
Created December 18, 2017 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save belavina/0b6c66e69cb8ab2719ff8c531866a73f to your computer and use it in GitHub Desktop.
Save belavina/0b6c66e69cb8ab2719ff8c531866a73f to your computer and use it in GitHub Desktop.
Proof!
4009a4: 3dc36844 ldr q4, [x2,#3488]
k1 = BOOST_FUNCTIONAL_HASH_ROTL32(k1,15);
k1 *= c2;
4009a8: 3dc36c23 ldr q3, [x1,#3504]
h1 ^= k1;
h1 = BOOST_FUNCTIONAL_HASH_ROTL32(h1,13);
h1 = h1*5+0xe6546b64;
4009ac: 3dc37002 ldr q2, [x0,#3520]
4009b0: aa1403e0 mov x0, x20
k1 *= c1;
4009b4: 3cc106a1 ldr q1, [x21],#16
4009b8: 91008000 add x0, x0, #0x20
4009bc: 4ea49c21 mul v1.4s, v1.4s, v4.4s
4009c0: eb1302bf cmp x21, x19
k1 *= c2;
4009c4: 6f2f0420 ushr v0.4s, v1.4s, #17
4009c8: 4f2f5421 shl v1.4s, v1.4s, #15
4009cc: 4ea11c00 orr v0.16b, v0.16b, v1.16b
4009d0: 4ea39c00 mul v0.4s, v0.4s, v3.4s
h1 ^= k1;
4009d4: 6e251c00 eor v0.16b, v0.16b, v5.16b
h1 = h1*5+0xe6546b64;
4009d8: 6f2d0401 ushr v1.4s, v0.4s, #19
4009dc: 4f2d5400 shl v0.4s, v0.4s, #13
4009e0: 4ea01c21 orr v1.16b, v1.16b, v0.16b
4009e4: 4f225420 shl v0.4s, v1.4s, #2
4009e8: 4ea18400 add v0.4s, v0.4s, v1.4s
4009ec: 4ea28400 add v0.4s, v0.4s, v2.4s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment