Replace XOR swapping by default ("naive", with extra var) one.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 21 Jan 2014 14:19:27 +0000 (15:19 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 21 Jan 2014 14:50:44 +0000 (15:50 +0100)
commit7acb7cb8975d113a26be4e78f4eb7646192b2ea0
tree666103e4d2b319e52b2a5b6cfd84f6b55d2dfd77
parent7198eee88041962d7b3fa35cb4263554f5687b32
Replace XOR swapping by default ("naive", with extra var) one.

Ref: http://en.wikipedia.org/wiki/XOR_swap_algorithm, modern compilers/CPUs are much more efficient with "naive" algo than XOR one.
Doubled check, for me in an optimized build, XOR is several times slower than naive algo.
source/blender/blenlib/intern/edgehash.c
source/blender/bmesh/tools/bmesh_beautify.c