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] Multiarch optimization for strncat on PowerPC64


On 06-03-2014 07:34, R Vidya wrote:
> +#define	FRAMESIZE	(FRAME_MIN_SIZE+112)

Your implementation does not uses 112 bytes of stack, I think you mean plus 3 (the r29, r30, r31)
you save.

> +
> +L(a4):
> +	cmpdi r29, 0			/* if "n" is already zero ; we skip  */
> +	beq+ L(align4align)
> +
> +	mtctr r29			/* process left over bytes in "n"  */
> +unaligned1:

Missing L(...) on this label.

> +
> +L(a8):
> +	cmpdi r29, 0			/* if "n" is already zero ; we skip */
> +	beq+ L(align8align)
> +
> +	mtctr r29			/* process left over bytes in "n"  */
> +unaligned0:

Missing L(...) on this label.

Besides that, it is ok.


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