[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15084] trunk/blender: Compiler warning fixes (unused vars).

Martin Poirier theeth at yahoo.com
Mon Jun 2 09:13:20 CEST 2008




--- On Sun, 6/1/08, Joshua Leung <aligorith at gmail.com> wrote:

> From: Joshua Leung <aligorith at gmail.com>
> Subject: [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15084] trunk/blender: Compiler warning fixes (unused vars).
> To: bf-blender-cvs at blender.org
> Date: Sunday, June 1, 2008, 9:02 PM
> Revision: 15084
>          
> Notes:
> - edgehash.c still has some weirdo code causing warnings on
> lines 80 and 117
> i.e.  if (v1<v0) v0 ^= v1 ^= v0 ^= v1;

For people interested, the name of this construction is XOR swap. It's a way to swap vars without using temporary storage. AKA early over optimizing.

Martin


      


More information about the Bf-committers mailing list