Blender Git Loki

Git Commits -> Revision 7acb7cb

Revision 7acb7cb by Bastien Montagne (master)
January 21, 2014, 14:50 (GMT)
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.

Commit Details:

Full Hash: 7acb7cb8975d113a26be4e78f4eb7646192b2ea0
Parent Commit: 7198eee
Lines Changed: +6, -10

2 Modified Paths:

/source/blender/blenlib/intern/edgehash.c (+3, -5) (Diff)
/source/blender/bmesh/tools/bmesh_beautify.c (+3, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021