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: Handle various cache size


----- "H.J. Lu" <hongjiu.lu@intel.com> wrote:
> 	* sysdeps/i386/i686/multiarch/memset-sse2.S: Handle various
> 	cache size.

I don't like this.  As Jakub mentioned elsewhere, doing this work all the time the function is called is unnecessarily expensive.  I haven't looked how exactly the code uses the cache size.  My guess is that odd cache sizes can be handled in some way without additional overhead.

If this is not the case then a special new variable should be introduced in cacheinfo.  Then the memset code should use this rounded cache size variable.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â


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