Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. typedef int vec16 __attribute__ ((vector_size (16)));
  2.  
  3. main()
  4. {
  5.   volatile __uint128_t r128;
  6.   volatile __uint128_t res128[8];
  7.   volatile vec16 *p = (vec16*)&r128, *res=(vec16*)res128;
  8.  
  9.   r128=128;
  10.   *res128 = 127;
  11.  
  12.  
  13.   //res[0] = p[0] | p[1] | p[2] | p[3] | p[4] | p[5] | p[6] | p[7] | p[8] | p[9] | p[10] | p[11] | p[12] | p[13] | p[14] | p[15] ;
  14.  
  15.  
  16.   res[0] = p[0] | p[1];
  17.   res[1] = p[2] | p[3],
  18.  
  19.   res[0] |= res[1];
  20.  
  21.   return 255;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement