Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp595040lqh; Fri, 31 May 2024 10:13:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+IeryUsEeJ1EV6jUcCeqfkOedEuOcV57btEnT4OYW9CX8jaRePtQRGtL5Tv/JOIqpI9DmQ1gllXdW+gDzUiZ7UF8emXWqD5ymP7T6LA== X-Google-Smtp-Source: AGHT+IH6ukhC/yXkavoShCPjWGXCrB98znJb/Wzxzjf2eDb7z0n1faV+0I4fiOMVXpwK2JTs8r22 X-Received: by 2002:a17:906:66cc:b0:a67:8fc4:7ad1 with SMTP id a640c23a62f3a-a6822636f02mr187975466b.63.1717175590446; Fri, 31 May 2024 10:13:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717175590; cv=pass; d=google.com; s=arc-20160816; b=VBvXZA7u/KNOwwCVeLMZJfioRZ7bMujh6dmhd002x2+xQdB7hLOGaT/T5mxalQIH/W AwkhbSj++JIv2HGnk82mT96MbsnhJlT1QoemPckHXmi0sGGtPHn9iJxnK4G52JW94ggO 0u02Aos4CcpOEtVNFuk9gSz5ikuToiEbXpp9BTZPIc4bHtDuHDY52mGaQKzFJOc1z/k7 bEC6FDz9dD2bN9AdDIWpcqeIoMetDy7oCXscSIQhqqFD9s1yjQi1GUDyjsHvnMA8b1SH 3Ny8Qm2LSm8ehmG1nm+aHt4W6lm411p21Ok34PyOqL77yw+msUEoOyxfUXe4ndzxHN8K TdKQ== 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=2rNMIILgKlNzeXzRzdQgwxJkUuZXyruFMSuxEMftOW4=; fh=qcVbNLOXBEXYOfuiguNdprnioWXVuxWklWVmwJjluYg=; b=Amheq2BmQFxfnG6M5RPglwrCq5JgX+Yua6/uYoDrmUt0FaAjwczbMvDRmvYiMkYZ94 zDHvgXJq8Irai2co6Lu8y0mROOPNJTGmEtbebBRnmjWMJNpPY91UZaDm3aIu/xCL79tR ShjfCZQ/CXC0YC1PY3giP5Ju+aSRTxXbCZGU8VTJt/ozpBR7JQ6+/MvcULCVTQaRblhz WgRLic2cKMSyxLx6FeUUPMmQRoxpJVHCsNOpiVcjBaXqGNrJSKypS3QTa2dx5QwnqWsu 3tqKGG7BIWe2lpZHBbraleJGN3xD9vpE00/QILgmKCAoYYkFZZoDKHGtCbWqML+je9nt 7g+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XX7TDT5g; 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-197232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eaf653bbsi112963166b.824.2024.05.31.10.13.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XX7TDT5g; 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-197232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197232-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85C2B1F264EC for ; Fri, 31 May 2024 17:12:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EB0F176ABD; Fri, 31 May 2024 17:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="XX7TDT5g" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 E0AAA156242; Fri, 31 May 2024 17:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717175565; cv=none; b=FfZ6Dy/BAgukuc1jY1xxNmpcOHVUDRe+2N7j28zqPq5V7pRyrVGzEUN0M5Q2F4e8Ll0I5YpWugeSDjjjOeeVsBELME8mPcbDcbjT8y5vO2JoVfnACLui0eWmoPpityohrsWxhLvw8B0K1e+PjODNTibKLBvUWyanfRRweZVThvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717175565; c=relaxed/simple; bh=5Drjhjc40i5t20Q8+Udfpsti+apZMTrzq15BgTAyJ7E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rUjBg+T5jamCEPEE40VVVJhbfrPRMTCwzEqRLWxiSsvBDBStMl27F2QkVgvGHPuwyVuXS9ursmXgjZ0RsfbQBxJgswSj7/6aViY7uloGO28vX3T4d7rxpe90Vn32PrCr9J7tfs36/CpHSXdxQ6YDh+o0wTDuXUoIaPJjPx5or+o= 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=XX7TDT5g; arc=none smtp.client-ip=198.47.23.248 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 lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44VHCMVT034497; Fri, 31 May 2024 12:12:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717175542; bh=2rNMIILgKlNzeXzRzdQgwxJkUuZXyruFMSuxEMftOW4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XX7TDT5gsbDbGHNz060zChdoXnucz2ixNZM98WKTloyOR8EyTLdLMSQw4r/WNSxO1 nlBUcU4mD9sSZTzB+W4PNSz2gmLNs9Fr63YgOHVTFxxMokkW3MM23FJ1IYIoBxSoR2 iyexsdyjtWKjT5WiGdVtwPbF28m4/KokeOF2ZT+Q= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44VHCMoG023460 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 May 2024 12:12:22 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 31 May 2024 12:12:22 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE111.ent.ti.com (10.64.6.32) 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, 31 May 2024 12:12:22 -0500 Received: from localhost (ti.dhcp.ti.com [172.24.227.95] (may be forged)) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44VHCLu8051240; Fri, 31 May 2024 12:12:21 -0500 From: Devarsh Thakkar To: , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v11 07/11] Documentation: core-api: Add math.h macros and functions Date: Fri, 31 May 2024 22:42:20 +0530 Message-ID: <20240531171220.1295881-1-devarsht@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240531170229.1270828-1-devarsht@ti.com> References: <20240531170229.1270828-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 difference, 32-bit division related macros and functions exported by math.h header file. Signed-off-by: Devarsh Thakkar --- 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