Advertisement
Guest User

Untitled

a guest
May 4th, 2013
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. void complex_loop(float _Complex * restrict in, float _Complex * restrict out, unsigned int n, float _Complex r)
  2. {
  3. #ifdef LOL
  4.      in = __builtin_assume_aligned(in, 8);
  5.      out = __builtin_assume_aligned(out, 8);
  6. #endif
  7.         float _Complex v = r;
  8.  
  9.         do {
  10.                 *out++ = *in++ * v;
  11.                 v *= r;
  12.         } while (--n);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement