[PATCH v11 29/29] string: Hook up the default implementation on test-memrchr

Richard Henderson richard.henderson@linaro.org
Wed Feb 1 17:57:25 GMT 2023


On 2/1/23 07:04, Adhemerval Zanella wrote:
> ---
>   string/test-memrchr.c | 7 +++++++
>   1 file changed, 7 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

> 
> diff --git a/string/test-memrchr.c b/string/test-memrchr.c
> index a4eac3592e..e4cba1878a 100644
> --- a/string/test-memrchr.c
> +++ b/string/test-memrchr.c
> @@ -24,6 +24,13 @@ typedef char *(*proto_t) (const char *, int, size_t);
>   
>   IMPL (memrchr, 1)
>   
> +/* Also check the generic implementation.  */
> +#undef weak_alias
> +#define weak_alias(a, b)
> +#define MEMRCHR __memrchr_default
> +#include "string/memrchr.c"
> +IMPL (__memrchr_default, 1)
> +
>   /* Naive implementation to verify results.  */
>   char *
>   simple_memrchr (const char *s, int c, size_t n)



More information about the Libc-alpha mailing list