This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/4] Improve generic strcspn performance
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org, Wilco Dijkstra <wdijkstr at arm dot com>
- Date: Fri, 1 Apr 2016 13:44:39 -0700 (PDT)
- Subject: Re: [PATCH 1/4] Improve generic strcspn performance
- Authentication-results: sourceware.org; auth=none
- References: <1459178389-14133-1-git-send-email-adhemerval dot zanella at linaro dot org> <1459178389-14133-2-git-send-email-adhemerval dot zanella at linaro dot org> <56FD5798 dot 1070202 at twiddle dot net>
> On 03/28/2016 08:19 AM, Adhemerval Zanella wrote:
> > + s = (unsigned char *) ((size_t)s & ~3);
>
> Nit: s/size_t/uintptr_t/.
>
> It's the same type for all supported targets,
> but the spelling says what you mean.
libc-internal.h has PTR_ALIGN_DOWN for this.