Related sites: | site map |

# aiju.de Home of aiju

- › about me/
- › b/
- » code/
- - › RatJS
  - › homework/
  - › k/
  - » misc/
  - - › molecule/
    - › pi
    - » sort
    - › tiny
  - › pdp11/
- › donate
- › electronics/
- › legal
- › misc/
- › plan 9/

    s(a,b)int*a,*b;{int*i=a,*j=--b,p=*(++b),t,u=(t=t++-t+t++-t,t<<(t<<(t/t)));
    if(((a-b)&(--u,t<<=--u,u=t))){do{while(!((p-*(i++))&u)&&!((b-i)&u));while
    (!((*(j--)-p)&u)&&!((j-a)&u));}while((--i-++j)&u&&(t=*i,*i=*j,*j=t,t?t
    :++t));(p-*i)&u&&(t=*i,*i=*b,*b=t);s(a,--i),s((i++,++i),b);}}

Yes, this is valid C, AFAIK. Figure out what it does. (It only works if int is 32 bits wide)