Message ID | 20230120211622.3445279-23-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=OkGfkSLL; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NzC9C1f4hz23gM for <incoming@patchwork.ozlabs.org>; Sat, 21 Jan 2023 08:21:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 18F193889E04 for <incoming@patchwork.ozlabs.org>; Fri, 20 Jan 2023 21:21:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18F193889E04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674249677; bh=KHtcW8v9AgEJXBxhRQhzHR+sZS5ZSEoyLU3ZktxYi8c=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OkGfkSLLttPtSOwq5unlM6UYfp3xKyRMxLiHsipazQWWoadp5vgaGXHYcGUuqi/op AWXVTeXToMdlF3EC66IfNbNQmzvkldlbRuBzJP2IcmaHBAqSH2CHToAH97uUJCJ0pu jRvUVZZroL+mKADbCJkYuKBzzF8UhLOQYGRZhy7o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id C44A33885523 for <libc-alpha@sourceware.org>; Fri, 20 Jan 2023 21:17:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C44A33885523 Received: by mail-ot1-x329.google.com with SMTP id d6-20020a056830138600b0068585c52f86so3823644otq.4 for <libc-alpha@sourceware.org>; Fri, 20 Jan 2023 13:17:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KHtcW8v9AgEJXBxhRQhzHR+sZS5ZSEoyLU3ZktxYi8c=; b=zEc7wAXHq0QPkxrnkSNk5iiniQKfzY4P0AuiR+P8EAmmmCs2PNftNouJz+1dNFsUrS UpCLs/LcXDV8CUt5Eqd0sqk6QFNGwiPYSi65zjmaF8+nyayBmQS+RSJfnAhi6fwzuCpQ UOIj6UQLgKcF6o3+I/8c9/OwPpBPhYG88bBPjFXdLM2yb+/7IvtaFqk0+cCnQpkUKQYU kuboN/Llrs+/nv3JnazQg7Yzui/mo7SsWLEi964jboci+xdEMbCrhtX3sxGy2kvfK/TJ t2TIt5+L8GrJRCbVFSOrdJkMPo3c4JEcpzvTY23UME+yZCwSaM7SHoEJzd5BppaUG+uL 8xKQ== X-Gm-Message-State: AFqh2kp+fqv2Q/1Qph/AZtJNevtC9UgrEh1xRV/reemxaVssodoviJTG fsAWtRN5eZiA8aRc7nlmDz0SCcWyu2iP0mYoNPo= X-Google-Smtp-Source: AMrXdXvyz3HKkwbTPM1nKreUGJuHomZdw3ytl7RYlDE5v+BBD1EM4vzrJKfmE4dwXfQzgFsl/hqR6w== X-Received: by 2002:a05:6830:1bf6:b0:676:dbab:a8ce with SMTP id k22-20020a0568301bf600b00676dbaba8cemr8242876otb.15.1674249437925; Fri, 20 Jan 2023 13:17:17 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c1:7e99:f284:be2f:4ee5:d122]) by smtp.gmail.com with ESMTPSA id d18-20020a056830139200b00686467f920bsm6937432otq.48.2023.01.20.13.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 13:17:17 -0800 (PST) To: libc-alpha@sourceware.org, Richard Henderson <richard.henderson@linaro.org>, Noah Goldstein <goldstein.w.n@gmail.com> Subject: [PATCH v10 22/24] string: Hook up the default implementation on test-strncmp Date: Fri, 20 Jan 2023 18:16:20 -0300 Message-Id: <20230120211622.3445279-23-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230120211622.3445279-1-adhemerval.zanella@linaro.org> References: <20230120211622.3445279-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Adhemerval Zanella <adhemerval.zanella@linaro.org> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> |
Series |
Improve generic string routines
|
expand
|
diff --git a/string/test-strncmp.c b/string/test-strncmp.c index fb4c6420b8..35dc496eae 100644 --- a/string/test-strncmp.c +++ b/string/test-strncmp.c @@ -90,6 +90,22 @@ typedef int (*proto_t) (const CHAR *, const CHAR *, size_t); IMPL (STRNCMP, 1) +/* Also check the default implementation. */ +#undef STRNCMP +#undef libc_hidden_builtin_def +#define libc_hidden_builtin_def(a) +#undef attribute_hidden +#define attribute_hidden +#ifndef WIDE +# define STRNCMP __strncmp_default +# include "string/strncmp.c" +# define STRNCMP_DEFAULT STRNCMP +#else +# define WCSNCMP __wcsncmp_default +# include "wcsmbs/wcsncmp.c" +# define STRNCMP_DEFAULT WCSNCMP +#endif +IMPL (STRNCMP_DEFAULT, 1) static int check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n,