Date: Sat, 07 Feb 2015 02:49:54 +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-BzdhMPo2eS@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 #7 from Andrey A. Chernov <ache@FreeBSD.org> --- 4) swap(a, b) macro needs to be fixed too: #define swap(a, b) \ if (swaptype_long == 0) { \ long t = *(long *)(a); \ *(long *)(a) = *(long *)(b); \ *(long *)(b) = t; \ } else if (swaptype_int == 0) { \ long t = *(int *)(a); \ *(int *)(a) = *(int *)(b); \ *(int *)(b) = t; \ } else \ swapfunc(a, b, es, swaptype) -- 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-BzdhMPo2eS>