This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/206] malloc does not align memory correctly for sse capable systems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]