Skip to content

Instantly share code, notes, and snippets.

View belavina's full-sized avatar
?

Olga Belavina belavina

?
  • Montreal, Canada
View GitHub Profile
@belavina
belavina / gist:127549552c5ebcabda4d768a42e688ea
Created December 28, 2017 21:33
perf output vectorized
[obelavina@bbetty spo600_20173_inline_assembler_lab]$ perf stat -r 10 -d ./vol_simd
Generating sample data.
Scaling samples.
Summing samples.
Result: 700
Generating sample data.
Scaling samples.
Summing samples.
Result: -411
Generating sample data.
[obelavina@bbetty audio]$ perf stat -r 10 -d ./p3
357 ms
Sum: -679197541
357 ms
Sum: -679197541
357 ms
Sum: -679197541
357 ms
Sum: -679197541
357 ms
@belavina
belavina / Proof.asm
Created December 18, 2017 04:51
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]