This is the mail archive of the libc-alpha@sourceware.org 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]

Re: [PATCH] powerpc: Use generic memset for RTLD for ppc32/64


On Mon, Sep 27, 2010 at 13:14, Luis Machado <luisgpm@linux.vnet.ibm.com> wrote:
> The usual cache line size for the POWER server processors is 128 bytes.
> PPCA2 has a different size, and thus we can't use our current generic
> memset code (powerpc/powerpc[32|64]/memset.S) as a base for RTLD's
> memset since it assumes cache-line size to be 128 bytes.

What does "can't use" mean?

memset mustn't exceed the buffer limits at either the low or high end
of the buffer.  Therefore the cache line size can really only be used
for optimization purposes but not for functional changes.  As opposed
to, say, memchr where we can overread the buffer if we disregard the
invalid bytes.


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