34 ms·
Woops, I totally forgot about that, I think I was confused with range reduction on the final result. Nevertheless, Tyche-i is also blazing fast and small:
by nightcracker 12y ago
Woops, I totally forgot about that, I think I was confused with range reduction on the final result. Nevertheless, Tyche-i is also blazing fast and small:
0000000000000000 <_Z6tycheiv>:
0: 8b 0d 0c 00 00 00 mov 0xc(%rip),%ecx
6: c4 e3 7b f0 05 07 00 rorx $0x7,0x7(%rip),%eax
d: 00 00 07
10: c4 e3 7b f0 15 ff ff rorx $0x8,-0x1(%rip),%edx
17: ff ff 08
1a: 44 8b 05 04 00 00 00 mov 0x4(%rip),%r8d
21: 31 ca xor %ecx,%edx
23: 44 31 c0 xor %r8d,%eax
26: 41 29 d0 sub %edx,%r8d
29: c4 e3 7b f0 d2 10 rorx $0x10,%edx,%edx
2f: 29 c1 sub %eax,%ecx
31: c4 e3 7b f0 c0 0c rorx $0xc,%eax,%eax
37: 44 31 c0 xor %r8d,%eax
3a: 31 ca xor %ecx,%edx
3c: 29 c1 sub %eax,%ecx
3e: 89 05 08 00 00 00 mov %eax,0x8(%rip)
44: 41 29 d0 sub %edx,%r8d
47: 89 15 00 00 00 00 mov %edx,0x0(%rip)
4d: 44 89 05 04 00 00 00 mov %r8d,0x4(%rip)
54: 89 0d 0c 00 00 00 mov %ecx,0xc(%rip)
5a: c3 retq