Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 6th, 2010  |  syntax: None  |  size: 0.57 KB  |  views: 177  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #define XPROD31_R(_a, _b, _t, _v, _x, _y)\
  2. {\
  3.   asm volatile ("mac.l %[a], %[t], %%acc0;"\
  4.                 "mac.l %[b], %[v], %%acc0;"\
  5.                 "mac.l %[b], %[t], %%acc1;"\
  6.                 "msac.l %[a], %[v], %%acc1;"\
  7.                 "movclr.l %%acc0, %[a];"\
  8.                 "move.l %[a], (%[x]);"\
  9.                 "movclr.l %%acc1, %[a];"\
  10.                 "move.l %[a], (%[y]);"\
  11.                 : [a] "+&r" (_a)\
  12.                 : [x] "a" (_x), [y] "a" (_y),\
  13.                   [b] "r" (_b), [t] "r" (_t), [v] "r" (_v)\
  14.                 : "cc", "memory");\
  15. }\