+
+ // good olde xor swap test too
+ float swap_x = 100;
+ float swap_y = 200;
+ vector swaps = swap(swap_x, swap_y);
+ print("100:200 swapped is: ", ftos(swaps.x), ":", ftos(swaps.y), "\n");
+
+ // good olde xor swap test too
+ vector swap_u = '1 2 3';
+ vector swap_v = '4 5 6';
+ swap_u ^= swap_v;
+ swap_v ^= swap_u;
+ swap_u ^= swap_v;
+ print("'1 2 3':'4 5 6' swapped is: ", vtos(swap_u), ":", vtos(swap_v), "\n");
+
+ // the one that showed us overlap bugs
+ print(vtos('1 2 3' ^ f('3 2 1') ^ f('1 1 1')), "\n");
+ print(vtos('1 2 3' ^ f('3 2 1') ^ 3), "\n");
+ print(vtos('1 2 3' ^ 6 ^ 3), "\n");
+ print(vtos('1 2 3' ^ 6 ^ f('1 1 1')), "\n");
+ print(vtos('1 2 3' ^ 5), "\n");