diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-21 18:19:27 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-21 18:50:44 +0400 |
commit | 7acb7cb8975d113a26be4e78f4eb7646192b2ea0 (patch) | |
tree | 666103e4d2b319e52b2a5b6cfd84f6b55d2dfd77 /source/blender/blenlib/PIL_time_utildefines.h | |
parent | 7198eee88041962d7b3fa35cb4263554f5687b32 (diff) |
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.
Diffstat (limited to 'source/blender/blenlib/PIL_time_utildefines.h')
0 files changed, 0 insertions, 0 deletions