[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <191572.86791.qm@web94110.mail.in2.yahoo.com>
Date: Wed, 30 Apr 2008 23:39:09 +0530 (IST)
From: Soumyadip Das Mahapatra <dip_kernel@...oo.co.in>
To: linux-kernel@...r.kernel.org
Subject: Improved Swaping Method In sort.c
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists