This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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]: Sparc SUN4V Niagara optimized memset/memcpy


David S. Miller wrote:

> +ENTRY(memset)
> +	/* %o0=buf, %o1=pat, %o2=len */
> +	and		%o1, 0xff, %o3
> +	mov		%o2, %o1
> +	sllx		%o3, 8, %g1
> +	or		%g1, %o3, %o2
> +	sllx		%o2, 16, %g1
> +	or		%g1, %o2, %o2
> +	sllx		%o2, 32, %g1
> +	ba,pt		%XCC, 1f
> +	 or		%g1, %o2, %o2
> +
> +ENTRY(__bzero)

This is confusing data.  No two functions should overlap.  I suggest to
make bzero a little function calling memset similar to what you did with
bcopy.

Second, add cfi.

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

Attachment: signature.asc
Description: OpenPGP digital signature


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