[Bug 135718] [patch] enhance qsort(3) to properly handle 32-bit aligned data on 64-bit systems

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 6 19:17:45 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=135718

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

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

--- Comment #4 from Andrey A. Chernov <ache at 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.


More information about the freebsd-bugs mailing list