This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/206] malloc does not align memory correctly for sse capable systems
- From: "gotom at debian dot or dot jp" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Jun 2004 19:07:41 -0000
- Subject: [Bug libc/206] malloc does not align memory correctly for sse capable systems
- References: <20040605142238.206.ma1flfs@bath.ac.uk>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From gotom at debian dot or dot jp 2004-06-05 19:07 -------
Wolfram,
The alignment size is defined as MALLOC_ALIGNMENT defined as
(2*sizeof(INTERNAL_SIZE_T)). INTERNAL_SIZE_T is size_t (4 byte),
so MALLOC_ALIGNMENT is 8 bytes. Bug#206 says it's not suitable
for SSE instruction that needs 16 byte alignment as follows:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=206
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795
I don't know that changing memory alignment size is acceptable
on i386. IMHO, SSE is special instruction, so I think in this
case using posix_memalign() is safe. Please check this bug?
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|gotom at debian dot or dot |bugzilla1 at malloc dot de
|jp |
Status|NEW |ASSIGNED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=206
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.