From patchwork Wed Jan 17 11:18:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 763290 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e5d:0:b0:337:62d3:c6d5 with SMTP id j29csp216517wrz; Wed, 17 Jan 2024 03:18:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6I/+cm4qrLSXf/d4nB+sDmNwKf21dM265rxmT1rJ5DL/jc1Y94rYrbcaoO2WNxKVvAjoN X-Received: by 2002:a05:622a:34d:b0:42a:1307:67db with SMTP id r13-20020a05622a034d00b0042a130767dbmr185477qtw.52.1705490329981; Wed, 17 Jan 2024 03:18:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705490329; cv=pass; d=google.com; s=arc-20160816; b=q6jLAUa8py4NqRStp2seYplqQW1wmSNPmTho3vo87+JXloFtlLXAS3QvsbOmPRiLTX Gi57WIyu2r7K/lMUwwSK1+vvrM/IQGLMQ5s+BtYIPNjp26K6IWrB/NiOe4sXsatfZv6L Mmy8NQsW4dLUxFEy3iotOleAU2paSJwAwA5FWgpAUUgaWKRHWklU4PsdiZb0C4gJKCl2 oLXzC3oQXAT0OIX5SHk3tm/FXHTkV0fbnlWz1izjr9MvfR+ybvjTaq2KlJc00HQxHZTj Z6FuJIs2/ENNktLeaP3wHlON2trkEDKzvRbw/f4qmf3nygMA/Y6FWKDj+ij76eyfmMkI a7pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=/I9QGFGPmygB3awQvhfJndoBLFaJcXg7tLIOb3QsdbQ=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=dnSajW6dBwZJciHd8tBMgow0IQyNuzvaOLdHDXffJ0PC+DToDnq1hr41d6yW+iEjMk YRj587K8ZFHPU141Euak6B22Kthu2gkSy+O1SEIhfqgzyY4dCKjq795UhKX6Iauokeil 7aWOBL5YLLY73nFueMVvY0YFEaMYMEIngI92LfOzDzTtjkajI8wqTkEckTBESLh5sX9L j970o7RO0vB4BohxfiaA4qtMitxMpBu6o5SWldo75TQsVt9j9orFMsjzl+gz88raCIkq PDqOF1s+6h31fwaNdrin4/+eHuKAt9a2xIbKZ0hPz+6pW74yGePggX8U+DckMBVH7yzs EAEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBdEYH9C; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c11-20020a05622a024b00b0042a08bef4f4si2272791qtx.499.2024.01.17.03.18.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 03:18:49 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBdEYH9C; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9655A3858435 for ; Wed, 17 Jan 2024 11:18:49 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 438C93858CDB for ; Wed, 17 Jan 2024 11:18:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 438C93858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 438C93858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705490320; cv=none; b=DlQASY6F7kwmaBqbNWrD65nGqDutHSezy8UFoIMasArpa6BdXDkWNcLlSla8CyW2jku/Bhd5GFQSjoJ8hGOuMHweMQnBFus1JiKCxAhhXCrLt4/+T/pr1R5F8SYmgiQlGB6USTJ0I/HcjYNpP+DK5fe/1lxWOPN5hl87dmXjDLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705490320; c=relaxed/simple; bh=ACuBr4AbIsjl+N9RFfKMSQ0k7Sjva7admUNtkSpthbM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=mdz+dSrhRqNqwdwoxItDYCwkBJr9bOk2QawObHwKF4vQGyv7mZuLIxgdI4c5fKApuZNkX8vprwA7Cu6EPsYSvAHvhu/6NXmhF2YF7np+q9dmBM/USloZx+gP/gIJwFlDL00MqOSq0L3nOo68U1Z2QMsIUJ9EHHGBwIEz8x//eJo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6db0c49e93eso7990722b3a.1 for ; Wed, 17 Jan 2024 03:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705490311; x=1706095111; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/I9QGFGPmygB3awQvhfJndoBLFaJcXg7tLIOb3QsdbQ=; b=PBdEYH9CPJ1LfV1oQlYRP/XEFIXfZzQ2CcuPJgOGx3Wweg9OMSqCAyamOyoCLS44k7 CvSrfDauOCSBFqmSphQD4NqVBxCUuj/TmusS2YMXFHkYf62s+1RlEueMfZlEL+0LLIGB q/RVzMicDJRYdqKFGiaC+ge5AIo5TOgGC7zBjoRWhRX82fpMhxGNmxBBbN6dTR1Shvkq NKsJ0cgvTmCxkvA41EqPG0JhJG24WwW3FwVE1LaOztEm30UrdWDaZzmOYi5so38U3jJK pPrbcXlP6lP7qWd89CHa5F+BO/shwKErIHUMtfGgySpYSdAnOWOmdiu+TsJ6mxQMJEH/ Vp2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705490311; x=1706095111; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/I9QGFGPmygB3awQvhfJndoBLFaJcXg7tLIOb3QsdbQ=; b=cmWP0Iz2gyTKFdWbK0Itr4HaqyC/2VLP69Z+WQX+iT8F4ftFLLKFlmnTnIiDiPxEjB 0JPdmHQQqID89rnZlCPPkqAC/t1V/5xyhSy5fO7HuSLohNlvDuCHtsx6gsCSYoJk16gA 7EJ8uPkh49OBGkxi4IEDosG/S4ljO/2XjqjT3bWTgWk14NWWekf8lWsJwDWMHomMFDy1 p4uI6SrdYqWV0Z34KIxsytEFS8Hpe0kD8Qop4H8S1axIrrRSSFfmdT8ZqIiz+plsrbNw 8YphB6hoq3mvxY4OZeXdXiApQbgB5bdC/syNQ/kKEA37xg95Mdj1HwRMp5/nrXN+s1R2 Cxew== X-Gm-Message-State: AOJu0YwJvvjCE+bhLcjjR+KSTAayCKyT48ky0hPOSzX5qe3Tv4fFV5y1 xrzn2bhf7oYzHH2uw+j6GeLTseaM/TZuX8ls6TwLSYtNPJU= X-Received: by 2002:aa7:9817:0:b0:6d9:bfef:119 with SMTP id e23-20020aa79817000000b006d9bfef0119mr8885440pfl.7.1705490311367; Wed, 17 Jan 2024 03:18:31 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2787:f7ea:8e32:ad62:f45a]) by smtp.gmail.com with ESMTPSA id ey15-20020a056a0038cf00b006db05eb1301sm1180266pfb.21.2024.01.17.03.18.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 03:18:30 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] stdlib: Remove unused is_aligned function from qsort.c Date: Wed, 17 Jan 2024 08:18:26 -0300 Message-Id: <20240117111826.2887740-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org Checked on x86_64-linux-gnu. --- stdlib/qsort.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/stdlib/qsort.c b/stdlib/qsort.c index 45af8da80c..7f5a00fb33 100644 --- a/stdlib/qsort.c +++ b/stdlib/qsort.c @@ -40,19 +40,6 @@ enum swap_type_t typedef uint32_t __attribute__ ((__may_alias__)) u32_alias_t; typedef uint64_t __attribute__ ((__may_alias__)) u64_alias_t; -/* If this function returns true, elements can be safely copied using word - loads and stores. Otherwise, it might not be safe. BASE (as an integer) - must be a multiple of the word alignment. SIZE must be a multiple of - WORDSIZE. Since WORDSIZE must be a multiple of the word alignment, and - WORDSIZE is a power of two on all supported platforms, this function for - speed merely checks that BASE and SIZE are both multiples of the word - size. */ -static inline bool -is_aligned (const void *base, size_t size, size_t wordsize) -{ - return (((uintptr_t) base | size) & (wordsize - 1)) == 0; -} - static inline void swap_words_64 (void * restrict a, void * restrict b, size_t n) {