Date: Fri, 06 Feb 2015 23:57:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 135718] [patch] enhance qsort(3) to properly handle 32-bit aligned data on 64-bit systems Message-ID: <bug-135718-8-yM0s1SCTv1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-135718-8@https.bugs.freebsd.org/bugzilla/> References: <bug-135718-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=135718 --- Comment #6 from Andrey A. Chernov <ache@FreeBSD.org> --- What is must be done in machine independent code is really simple: 1) #define SWAPINIT_long(a, es) swaptype_long = ... #define SWAPINIT_int(a, es) swaptype_int = ... 2) Call both SWAPINITs instead of one. 3) if (swaptype_long <= 1) swapcode(long, a, b, n) else if (swaptype_int <= 1) swapcode(int, a, b, n) else swapcode(char, a, b, n) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-135718-8-yM0s1SCTv1>