From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C1D9489BA for ; Thu, 23 Oct 2025 19:26:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EA07402EB; Thu, 23 Oct 2025 19:26:04 +0200 (CEST) Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) by mails.dpdk.org (Postfix) with ESMTP id 9908D40144; Thu, 23 Oct 2025 19:26:02 +0200 (CEST) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id E766EEC029C; Thu, 23 Oct 2025 13:26:01 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Thu, 23 Oct 2025 13:26:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1761240361; x=1761326761; bh=EN7mTSlM+HZulYY5KQJYglP9Lu//aTVQRYGCnQcjSaA=; b= JnSTHHCoj4HoTMgfSasw9gl1LBnhDeFF/z059tlqI6JTF3byYOzBp9MzRtHmnAkg J2LGOlBpmBM7Jo1W9RTNofRFdNbLIf55P3DyxzCLbY87PhW+6jKwVDoSxgMJPQ5Z ujoZIdCj3XTCkBUYTxeJZ8D771eUS5beqKEggkuYEeiMe48FT64eOEfsnxWWwTjd XEsOUkzCKjhl7OqwYX/6JnELMGo7lmniXlD9uEhAK8Ir5VXy3DZ7mY2Qlc3WJw7E ZBZR8TlbYJVWJ35omOePD+GhFjVWiE0wBfjJJ5C1G5YYzEmXwwnR6CuQF0CD89cN ZRGukXtfYui1FlRFGSu/6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1761240361; x= 1761326761; bh=EN7mTSlM+HZulYY5KQJYglP9Lu//aTVQRYGCnQcjSaA=; b=i kqNDaUNTC1c6jttj+2OJEJQQC1WVlBXi/AXSjs2IH8YxvcUy1SgHpiPRLJJqKTXS WovvkaMVqrVEt2obLndPIvhnxOuOXpG2iBS8hzVTnaWsGA1PFrsLVVThlAarTwxM G6tTc1TSiCW7jdPG/5//AyGhiYt4npbmi0KAi+NypK1PARbifhuHoki5ewsD/jkW PBiZEQSHKWIk4dEo4B2ZcfSPxYxuoMp0BfLu3PdQ2HhdyRw8KrP51oO7LbSuHkuT +r1yniNTjvrott6BJv9Gs4mImbvp990GYVrO8UjGkC1XSESw6oQos5Jf5/P0JORB BuSGOVwmt5xov8VSUbTzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddugeejtdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpeegtddtleejjeegffekkeektdejvedtheevtdekiedvueeuvdeiuddv leevjeeujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhnsggprhgtphhtthhopeejpdhm ohguvgepshhmthhpohhuthdprhgtphhtthhopehmrghtthhirghsrdhrohhnnhgslhhomh esvghrihgtshhsohhnrdgtohhmpdhrtghpthhtohepsghruhgtvgdrrhhitghhrghrughs ohhnsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggvvhesughpughkrdhorhhgpdhrtg hpthhtohepjhgrtghkrdgsohhnugdqphhrvghsthhonhesfhhoshhsrdgrrhhmrdgtohhm pdhrtghpthhtohephhhofhhorhhssehlhihsrghtohhrrdhlihhurdhsvgdprhgtphhtth hopehsthgrsghlvgesughpughkrdhorhhgpdhrtghpthhtohepmhgssehsmhgrrhhtshhh rghrvghshihsthgvmhhsrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Oct 2025 13:25:59 -0400 (EDT) From: Thomas Monjalon To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: Bruce Richardson , dev@dpdk.org, Jack Bond-Preston , Mattias =?UTF-8?B?UsO2bm5ibG9t?= , stable@dpdk.org, Morten =?UTF-8?B?QnLDuHJ1cA==?= Subject: Re: [PATCH] bitops: improve power of 2 alignment function documentation Date: Thu, 23 Oct 2025 19:25:58 +0200 Message-ID: <2357650.d7IHhHJzqS@thomas> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9FDBF@smartserver.smartshare.dk> References: <20250722075321.121254-1-mattias.ronnblom@ericsson.com> <98CBD80474FA8B44BF855DF32C47DC35E9FDBF@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > > > In the documentation, make clear > > > rte_align(32|64)prevpow2() -> , provided is a power of 2. > > > > > > The original documentation stated the "previous" power of 2 would be > > > returned, potentially leaving the user to erroneously conclude that, > > > for example, rte_align32prevpow2(32) -> 16. > > > > > > The rte_align(32|64)pow2() documentation, suffering from a similar > > > issue, is reworded in the same manner. > > > > > > Fixes: 08f683174e94 ("eal: add functions for previous power of 2 > > alignment") > > > Cc: stable@dpdk.org > > > > > > Signed-off-by: Mattias R=C3=B6nnblom > > > --- > > Much clearer, thanks. > >=20 > > Acked-by: Bruce Richardson >=20 > Acked-by: Morten Br=C3=B8rup Applied, thanks.