Improved Swaping Method In sort.c

From: Soumyadip Das Mahapatra
Date: Wed Apr 30 2008 - 14:09:44 EST


Thanks Jan,
Actually it should be
static void u32_swap(void *a, void *b)
{
*(u32 *)b ^= *(u32 *)a;
*(u32 *)a ^= *(u32 *)b;
*(u32 *)b ^= *(u32 *)a;
}
But this code saves memory equaling two integers. What about that ?




Meet people who discuss and share your passions. Go to http://in.promos.yahoo.com/groups/bestofyahoo/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/