lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ