Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1050134lqt; Fri, 7 Jun 2024 06:51:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnHouDjR3M1ZbtpslMVJf+dIbEpQTBEIwt2gkL65hLsHQ9ChUQW4kXQ4c0S4DJjy25pj1UsS4bzAm7tVe4JxomAf5KuUmqmR6QXhp4ng== X-Google-Smtp-Source: AGHT+IEAN98GR0ee6mg6suljhzx02UmBv8lVF5WKXK8IInL5Ev+vEqwkYcV4LDexgPYLhWTcw89Z X-Received: by 2002:a17:902:cecd:b0:1e8:5cf9:37fc with SMTP id d9443c01a7336-1f6d02f55e4mr34911405ad.35.1717768298083; Fri, 07 Jun 2024 06:51:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717768298; cv=pass; d=google.com; s=arc-20160816; b=eCF2VOKhK+bjubtrWVYUx+LSH+lnrys14sa3+iymj8gU8Tn/NbyNFuzk5E3QfksW8b k4RU7crsEhUjOEH9+W+LxiEB4g9lUoI6Rz3mv2ZpSZW5Ze53XRb+pTv+qdkYxKPkvmqL VucNQqO1GRmz6Hk4tV8LCIFECR/LuhYTHXtzmC3lLzMEUnyTew6S5AvJAMzXbmM5C1X5 nw6HjY6kYrjedUIu0PwDTbLAuifpWVYJqneZr++EFG5JEh1cFplvRbZtN4/+0auSpMPo W65zQrfVl1LorfafYdhG7W5AOmJHoZrzsBcbxPg3+bQ/tBMGUEbAia42EgXB2FA0AREN 4upA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Rv8Hb874Nu8V7306/erfIx0SE7TmvbbVdALGp3wOf+0=; fh=qcVbNLOXBEXYOfuiguNdprnioWXVuxWklWVmwJjluYg=; b=b/mGRPIkMdGTtMRzvh2TM5HqUQtEvAXN6i/q92b372hCTqiNP+3C7MLtDtVIkQxdyp UV09mNK1cidkLfZRHYhy0z+IwCy9SH8NnwLcXXMsVxvsFjAvu9aV96ad0hWNEniTmsM4 xRkMsUNdJkhUJrVv36cH02tc8/op2S+1g3mcYsZXikQ3ofKE6+2rRzR8QVu1EJzp+7b7 B86dbCtpQz4KXYgnFH0dNbc//ecMK4A2Pj0JRt57oE7zR8BaCK9pcabBiAkcDgfTPrnA 0uHMIQXa6K+FjbKqQwNvmb5w6h9TcPgnQs5Y6aGR0LXbthmEVFuoCBLBcs1tfqPu5HeD 279Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SzGCP+JP; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-206164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7e4f79si8030985ad.385.2024.06.07.06.51.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 06:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SzGCP+JP; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-206164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7B7C0B29155 for ; Fri, 7 Jun 2024 13:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA64B197521; Fri, 7 Jun 2024 13:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="SzGCP+JP" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97DA0194120; Fri, 7 Jun 2024 13:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717767102; cv=none; b=cbLJZ06Bxx0VZel9Esg+y11xFnWoB8Kcsu3Fk5oVp0bAs53wn8051kbWGwzY+EIaOIWwt6eL1rUtOVWmTMqLFk2nK0bfMYmItDc4iAv5NoNrVCCTFfmFc+Ptcc36JhnAvLjnVVD6GMump+DPjEB+YPmyd5BB444fVrjQ++NrpsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717767102; c=relaxed/simple; bh=XqLBnbXePtGLuJK13oyHDSQ/geHy7iZ320cBA8k3IQU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UAMNnhPJhg2s7NHg4Q7WgvEXtt++51A57nCsnzz1EMZms8wrYN6AB2Bcnm2J214LJbuzVNbycVLbgPiqv1/6xfHYRA54USm2af3amT4FyoNK5OvxLjSoXwkeINnLxZuodU7hTGtGV1q0DWYaQN9YZ/XxkNxr2TYn5zF5BNo52wc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=SzGCP+JP; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 457DVM8I117429; Fri, 7 Jun 2024 08:31:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717767082; bh=Rv8Hb874Nu8V7306/erfIx0SE7TmvbbVdALGp3wOf+0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SzGCP+JPDSTFI+Hj+GjNiwbRof+soYCwKliXrsQiSpUkBnrgqoAXukYfX2JTXZ6FG iV6XGk2v78Gi3KIRZaJ2B7P/gX8WWzOHSE9apjdtzOdrLJzJZzoMsXhhVyMYuR/0w8 O+9MlTLddRwXrsyNP4dY702rCSe+oGYtd57G8Cdk= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 457DVM0J110365 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2024 08:31:22 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 7 Jun 2024 08:31:21 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 7 Jun 2024 08:31:21 -0500 Received: from localhost (ti.dhcp.ti.com [172.24.227.95] (may be forged)) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 457DVKdt045230; Fri, 7 Jun 2024 08:31:21 -0500 From: Devarsh Thakkar To: , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v13 09/13] Documentation: core-api: Add math.h macros and functions Date: Fri, 7 Jun 2024 19:01:20 +0530 Message-ID: <20240607133120.3556488-1-devarsht@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240607131900.3535250-1-devarsht@ti.com> References: <20240607131900.3535250-1-devarsht@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add documentation for rounding, scaling, absolute value and 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar Reviewed-by: Andy Shevchenko --- V13: No change V12: Add Reviewed-by V11: Fix title for math function header V10: Patch introduced V1->V9 (No change) Documentation/core-api/kernel-api.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/core-api/kernel-api.rst b/Documentation/core-api/kernel-api.rst index ae92a2571388..7de494e76fa6 100644 --- a/Documentation/core-api/kernel-api.rst +++ b/Documentation/core-api/kernel-api.rst @@ -185,6 +185,12 @@ Division Functions .. kernel-doc:: lib/math/gcd.c :export: +Rounding, absolute value, division and 32-bit scaling functions +--------------------------------------------------------------- + +.. kernel-doc:: include/linux/math.h + :internal: + UUID/GUID --------- -- 2.39.1