Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 2015 19:17:45 +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-RItTZkIlJz@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

Andrey A. Chernov <ache@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ache@FreeBSD.org

--- Comment #4 from Andrey A. Chernov <ache@FreeBSD.org> ---
The patch assumes that sizeof(long) % sizeof(int) == 0 everywhere.
Machine-independent code should not have such assumption.
There must be two completely separated calculation, one for int and one for
long. I.e. current code for long must be duplicated for int.
Then final pass should be added to determine which version wins (if equal, long
first).

-- 
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-RItTZkIlJz>