Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1359772lqo; Sat, 11 May 2024 21:47:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWyePWFPMUZ677rApBUY6c70AAQ38gi2pfIptG1BlaMVNP3IoQ0nSEqi+y4gqTOr3Ji+ZMqXXYkgnsfdYHbbJVfwlybcrzJw7c2IIRug== X-Google-Smtp-Source: AGHT+IFIlySfvS+CDtNIafyp/vu5ubEpxwiEoqOnDb3uJykDfmC5FQ4EANqxN3xse7g/r6m5jc2g X-Received: by 2002:a17:902:f545:b0:1eb:6cfe:7423 with SMTP id d9443c01a7336-1ef42f7584dmr101041735ad.19.1715489235415; Sat, 11 May 2024 21:47:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715489235; cv=pass; d=google.com; s=arc-20160816; b=kLKvlw7dN2Dr0TEPgU2FCC8NUbqe82P7Yd3dGvSvxk3407OkFnCvDPf7wUtvkqhOsN fNEbRGEjEr4MZWD2OPmWrSxBt0S9iQ+URZH8MJeZ/mkcUCNyEcSv4CVLvu83WSBQzNPt yISb1tpoyQ+XA4mREgo6ct7Y7tWjEoyWPPqugYl2SU6X8Xn/BeQO+Pv9D4ce0hTJRPFC r6VQBtd6NDJU9faUK/m9OBbJsQhLN6I7fpJe8iT15r2GPGRttVfdVZeXI0JDFKMGUtOe ND7ziRBTXY36P7BwiF1remSefAPMgIO1TYpo2dbx/jeULTiF7n5e0tFbpji6b47TysnM bXaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KK6TsAwtGjBbTSQzMUzip8w3QmdfL6P+ac45Lx3W0NM=; fh=NHSc1PvPpwkN/IHxGOtyEpyvGF1cOWM5hMeO3jDRU10=; b=pnkfyOLegv6KyY2Wbby1MbNjgR1/OrFOQOXHvOR42NZjUWnBbCAx+qPgFZVDJAFzZL bm72WVwG/DBacNIyO7WQ61U0ZDLV1Sp0+kA8RUjJWkKU4eAc/Exl0LIsV4zvmFrjq7eA pouzmM8hSfZPim2T21/cV5rum5I2mODM3f/FKTOQV8h/gYouG2X0K9nZxmFAdLicT6Ao 7UHszU51YI8wP/Il8iBH1RSsGbAskRc3dO34yPg6FBa09iPDfZG179lXzTsKULnpoQhq hX51UX+gsxPr2CieSLBJlZT3aDqniGvQb9xjbmShoaMtaPXveH2E1Mqq8YCkJdVNa6W5 pr1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W6Eh8Ngb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-176794-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c038b01si51818385ad.396.2024.05.11.21.47.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 21:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176794-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W6Eh8Ngb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-176794-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F00C3281E5F for ; Sun, 12 May 2024 04:47:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF77FEEDD; Sun, 12 May 2024 04:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W6Eh8Ngb" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA135CA40; Sun, 12 May 2024 04:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715489225; cv=none; b=DVnJk2ZgMdHe5A1Ey5f5gZXFf9n2XDytWcq0C0mdU+ZDTSIwAtgGlBT9//HZyTqzknY5DqGIgrstKjXRxPlX6agSubwau2oZtNVAsmCOh6czSySQjJmPKNGEC2Zdn9Kkzru5xpbjNbw0ORPfk5JugmcYda0h5su26YJn+DhrOOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715489225; c=relaxed/simple; bh=jYe8uLEyqnr17Ei7I34ZJuqQ4C/EH07pnG83ENopPBU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XGuEFxb34ROLL7/vIuTNHBkjM57e4bJYNDKvZ8SkEIKMGkuRf/BkEcC/saipgubJzlavKL3+c1sXcrYlAjzDvEo5qGZFUQV+519QV5XQyNbDKmLq96Yol084seRRFnz1CXCsMumKTnH74hBTz2kUIyT1qdXoZ70Dy0pGYKPG7vQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W6Eh8Ngb; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-41b2119da94so21257015e9.0; Sat, 11 May 2024 21:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715489222; x=1716094022; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KK6TsAwtGjBbTSQzMUzip8w3QmdfL6P+ac45Lx3W0NM=; b=W6Eh8NgbcsD38ZXrJ6A5zpwnZeZTmaNg0EvmwEp/eUx39V9jOZv8n63lqWIzefbsGO HzOHK9XRGTU8bkNWEIXYoEiK0HjouQ83H2KAV+Q6hKZX2KmbCqPjaBaL+wEWJjbR5DEe annAAReyIr9RGzCCX5Lo53/xJd9RoRVs4kh1rYzizFHAZn6ZqUkdbqlExLPZzAwCtU58 l5DJB0a2ffj6QHRbhqmuLagBFMAPXbUaV/mdl53nXUZzrOR1s4RP0WBxukVrvvl8jbBG 9rK8KS0/BFI4IL4hdWpvGQ7FHuD4vmxm/HWPZb/6H58F+1YBGBCo10V8yoDFYT8T+109 ddLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715489222; x=1716094022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KK6TsAwtGjBbTSQzMUzip8w3QmdfL6P+ac45Lx3W0NM=; b=V1gBRRPb+HCuZp/4uvNZ+E2+Os7D/oJJa/gOYXLp8CfwgJmLHWTROvJD8+mhGj9eXQ AMmXOmeHUaIKtfkB3r6lUoCXUs+ArVwh+tHu7FqLozukDhdVI2mbUzup/mIOIHDn3ztz EM1JM2/vsD12GxlIesnt4F9aqt0q/5DVT+zZwPmiNNQhyBoYDJVY2f0CwLjBAeSN0J7n YjyPVThoRVAB9X2JfGZ7BGxwuojKZHiZl6VL02eN53TV9WWUhOiItbecOQRWee8LTBJf PWtZAOV5BMlf68LRMXLtKFf2jDauPtLzpUWowmSti7nvTuQQec9NJfRyB/WVCP7nFKzm 2OUA== X-Forwarded-Encrypted: i=1; AJvYcCVZNOrbEAxXOeTEjGn4FanrvnVZR+hRlVOIzuaJedqqFv5f4uHenza3OpFGnHWMhF3t0SgUjQDPQkP7wnDditSGFWw6IB5m/f0JV3Myx5Deg1/tPSmOD43yJsTpr54rf/cXuHezjZCJ6d0= X-Gm-Message-State: AOJu0YyNz/oss9DPrLrfOJqPfSkx4qaBNsT9lt9vBcFgzhEEjCXdBTDT HCnwYfQ2ZWaAsFDinuXwGMvsBDlAgzTi4YhYIoCoIkzKANiympA= X-Received: by 2002:a05:600c:3508:b0:41a:7065:430a with SMTP id 5b1f17b1804b1-41fead7b138mr40562765e9.41.1715489221923; Sat, 11 May 2024 21:47:01 -0700 (PDT) Received: from p183 ([46.53.251.9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bd09sm8074593f8f.14.2024.05.11.21.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 21:47:01 -0700 (PDT) Date: Sun, 12 May 2024 07:46:58 +0300 From: Alexey Dobriyan To: Devarsh Thakkar Cc: Andy Shevchenko , mchehab@kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.gaignard@collabora.com, sebastian.fricke@collabora.com, akpm@linux-foundation.org, gregkh@linuxfoundation.org, jani.nikula@intel.com, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, laurent.pinchart@ideasonboard.com, praneeth@ti.com, nm@ti.com, vigneshr@ti.com, a-bhatia1@ti.com, j-luthra@ti.com, b-brnich@ti.com, detheridge@ti.com, p-mantena@ti.com, vijayp@ti.com, andrzej.p@collabora.com, nicolas@ndufresne.ca Subject: Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2 Message-ID: <0e72422c-8c83-4991-8def-97c40e0c06ff@p183> References: <20240509183952.4064331-1-devarsht@ti.com> <7214a8b5-16d4-42a1-868e-9574c506be85@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7214a8b5-16d4-42a1-868e-9574c506be85@ti.com> I think roundup(x, 1 << n) is more readable.