Received: by 2002:ab2:7853:0:b0:1fa:5c73:8e2d with SMTP id m19csp7653lqp; Thu, 30 May 2024 10:18:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpaLsTY50pDQTFbZ0hhFL3fdiuLqO9Yq+zZVLD7E48C74r5N97bzoM1sW7TA32JNWYgZOLLKkMljuRknCpzvLmQHFA1I1yug86q8Nxug== X-Google-Smtp-Source: AGHT+IFNxorBO7UCMRGIZFPOEMIsAj9JkbXYijBK74RBLd7vovLPImk3a0sBEWIys9aiI4cvEx9J X-Received: by 2002:a17:907:1592:b0:a67:aa2b:102b with SMTP id a640c23a62f3a-a67aa2b1147mr16170366b.14.1717089499834; Thu, 30 May 2024 10:18:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717089499; cv=pass; d=google.com; s=arc-20160816; b=B5Sqt0PyiWBio4A0G6yOUoZB8B8cLQdK7T5RVMgnUA7XdkYWH2M42osG1HUrzXptNQ ewDo+ZHSE9otOqbMRLeKpVAP9YHkYjnwPiunnOGib+02nAi8xcJAuHiwL/uPnkfRsdfO ii3240eVCk+WZe7P51+xR/gVblKP2xotbvmmyC9xGZ5WwvFnhkcxPCJmFlOGFZJq2yRs umPJFpn0wRbls1QHSyDO1ixFXq8KmCYth+4Q0legXZSSQPcoCyQpMNBUJfdPqEp6/jR2 qM0XNtFw51HCady3CPxRhIkJ5GWVI2Ns1pNvFTzb4hNGHGxLO6n/5XzpxZCUx4AcaRKC rrNA== 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=Z6rnEc5uQxLXNameu8zQegOMDz/Ptp/LXEB7CavHlXE=; fh=qcVbNLOXBEXYOfuiguNdprnioWXVuxWklWVmwJjluYg=; b=FdeWffPxZCTv2hoGcSj3STMiDnno5C49ln1oQ4fyLk+HtAzVVP0yNlIymwNVM2HY3T 4YQke7h3BrNuC6b8vhYuuqTnwgmoq45Sl09iTF/YH8/FBPpOrvDbw6jnyaL+k9dj3+Q4 Kw/VBT+HX4H7p9OK+xLRIzGcEB8ONm022ZOB1bXQIWL5njqgqDTBJW1O0AOWT6aSrdib dWyGRgUuL0w8ZuEY8ERODZGNoMdE8ExlldQt8WWgABnur9hYY1WpSrglu8+aeNx++xyM wiMNDDEWXaxOhE5iE7FUM73/67ShaCF9WkuLb87+6oGl4OXaaPuj50PuLgL76SWTu6tn aU7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Pn5sa+IL; 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-195723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195723-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-a65f8231e13si82049866b.1002.2024.05.30.10.18.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 10:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195723-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=Pn5sa+IL; 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-195723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195723-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 8A4091F23E42 for ; Thu, 30 May 2024 17:18:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 733B845BE6; Thu, 30 May 2024 17:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Pn5sa+IL" 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 0A6AF45BEF; Thu, 30 May 2024 17:18:04 +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=1717089486; cv=none; b=ZHcIXquuF3ISuftStTX5XxCW5JJSg45PMQOECAwVAgPuXXGKxgZmkWeDXwLZXeFL7tBCip2SAcxXXO1TJJfkscIByDIuk6f4vEmegl2WP7UYYkQPtZPvB10WQgxPqofUAHrYnB379+lYu+JDYyvB2ZmNRc+3Zu8V9Vxa5gvpWd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717089486; c=relaxed/simple; bh=HKE/ouW+dpFRHKVRnNexBfI90q8qQ3o8mx69I2FXR6s=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Mo5vGCxmtWfGt/C4+vyYvMR2O38TOP19EkCDrbKuh5IrIRaKZBjIBuyJM4R2pPm81JE/VUIsrg2eSGmZks/eDUSmYiM4+LYxgfx7f+mLSBIBgXnOFf4jIP4TnwdUJ8svPvSK1GcPxTkGU8iPUP1Ev/U7gWFV6LJJexozdH8E83s= 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=Pn5sa+IL; 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44UHHgfr029338; Thu, 30 May 2024 12:17:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717089462; bh=Z6rnEc5uQxLXNameu8zQegOMDz/Ptp/LXEB7CavHlXE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Pn5sa+IL1mgWy8SIlqTSpPzIDXQZyDsx4BWjV0wSz5wvTBOrJPIgVdIZYN1X3VyOm LPWxE+RJrihp2Te+B9eMORd1rIE8iXR9K5dIWbngRdOGWGe3p7ceQwodFHIi73E6z9 syuoXPCBMISxIFywk4VXw85I1Sv8LrdLbxPIVw3Y= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44UHHg38022314 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 May 2024 12:17:42 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 30 May 2024 12:17:41 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE105.ent.ti.com (10.64.6.26) 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; Thu, 30 May 2024 12:17:41 -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 44UHHfDi063295; Thu, 30 May 2024 12:17:41 -0500 From: Devarsh Thakkar To: , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v10 07/11] Documentation: core-api: Add math.h macros and functions Date: Thu, 30 May 2024 22:47:40 +0530 Message-ID: <20240530171740.2763221-1-devarsht@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240530165925.2715837-1-devarsht@ti.com> References: <20240530165925.2715837-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 --- V1->V9 (No change) V10: Patch introduced --- 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..fb467783d491 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, scaling and 32bit division functions +-------------------------------------------------------------- + +.. kernel-doc:: include/linux/math.h + :internal: + UUID/GUID --------- -- 2.39.1