summaryrefslogtreecommitdiffstats
path: root/funtools/funtest/swap
blob: fc72efca14705b661717bd277f8ddb64c020ea04 (plain)
1
2
3
4
5
  if( cur->x:D == cur->y:D ) continue;
  a = cur->x;
  cur->x = cur->y;
  cur->y = a;
  cur->avg:E  = (cur->x+cur->y)/2.0;