SHARE
TWEET

Untitled

a guest Apr 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   mov %rdi,%rax
  2.     mov $0x5555555555555555,%rsi
  3.     and %rax,%rsi
  4.     sal $1,%rsi
  5.     mov $0xAAAAAAAAAAAAAAAA,%rdx
  6.     and %rax,%rdx
  7.     sar $1,%rdx
  8.     or %rdx,%rsi
  9.     mov %rsi,%rax
  10.     mov $0x3333333333333333,%rsi
  11.     and %rax,%rsi
  12.     sal $2,%rsi
  13.     mov $0xCCCCCCCCCCCCCCCC,%rdx
  14.     and %rax,%rdx
  15.     sar $2,%rdx
  16.     or %rdx,%rsi
  17.     mov %rsi,%rax
  18.     mov $0x0F0F0F0F0F0F0F0F,%rsi
  19.     and %rax,%rsi
  20.     sal $4,%rsi
  21.     mov $0xF0F0F0F0F0F0F0F0,%rdx
  22.     and %rax,%rdx
  23.     sar $4,%rdx
  24.     or %rdx,%rsi
  25.     mov %rsi,%rax
  26.     mov $0x00FF00FF00FF00FF,%rsi
  27.     and %rax,%rsi
  28.     sal $8,%rsi
  29.     mov $0xFF00FF00FF00FF00,%rdx
  30.     and %rax,%rdx
  31.     sar $8,%rdx
  32.     or %rdx,%rsi
  33.     mov %rsi,%rax
  34.     mov $0x0000FFFF0000FFFF,%rsi
  35.     and %rax,%rsi
  36.     sal $16,%rsi
  37.     mov $0xFFFF0000FFFF0000,%rdx
  38.     and %rax,%rdx
  39.     sar $16,%rdx
  40.     or %rdx,%rsi
  41.     mov %rsi,%rax
  42.     mov $0x00000000FFFFFFFF,%rsi
  43.     and %rax,%rsi
  44.     sal $32,%rsi
  45.     mov $0xFFFFFFFF00000000,%rdx
  46.     and %rax,%rdx
  47.     sar $32,%rdx
  48.     or %rdx,%rsi
  49.     mov %rsi,%rax
  50.     ret
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top