Commit 8c9e9140 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

replaced the binary XOR operations with a naive but faster implementation

2005-09-28  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h (swap_pixels): replaced
	the binary XOR operations with a naive but faster implementation
	using a local variable.
parent 46644093
2005-09-28 Sven Neumann <sven@gimp.org>
* app/paint-funcs/paint-funcs-generic.h (swap_pixels): replaced
the binary XOR operations with a naive but faster implementation
using a local variable.
2005-09-27 Sven Neumann <sven@gimp.org>
* app/base/siox.c: minor code cleanups by Tobias Lenz.
......
......@@ -1256,9 +1256,11 @@ swap_pixels (guchar *src,
{
while (length--)
{
*src = *src ^ *dest;
*dest = *dest ^ *src;
*src = *src ^ *dest;
guchar tmp = *dest;
*dest = *src;
*src = tmp;
src++;
dest++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment