From patchwork Wed Nov 15 11:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 118934 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4157531qgn; Wed, 15 Nov 2017 03:01:59 -0800 (PST) X-Google-Smtp-Source: AGs4zMaZnFTEB0T6dx6/SC4tJlZK3mVng6s2Hj3PBNnwDoLtgf7llgZoCYnDo3E8ANOfFVoCxVhV X-Received: by 10.55.75.202 with SMTP id y193mr23873405qka.329.1510743719419; Wed, 15 Nov 2017 03:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510743719; cv=none; d=google.com; s=arc-20160816; b=jsPUV5Nrj5YP5/GghtrwO5BP1xpRKBNJdN11QmVleY4+wv8XaEB9Y2E2vrHB0LG5Ri ah1gQDq+XX3AHZk7ug6ePfI7BWCWFqsaAYf9fui/+oIYXrEjIdHZI63viaB7chzecb8K aCQ5sxO1ZeNDSHgeMRq5APCK3wnk+YujgvQpsaPMx1VQTi9gmQmwUEzbDIdXGhUjvdJw ED8vLhQMDkgej63SzZB0V3NCRFKNwC2sOkqfWI/84DAO4gT06MCTSD5GIDVLTjUA/spx lrq3L7DXntcNbfUsh/ZgaTRQkTBVCuq5F/+MqD25uTaIbqrV/oLDhJI/PGg4GAPLCnDv ooBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=kxJJV7J0wqhKLGIQO3b/TRdCo2RqIYFzlPGC6nL+o+Q=; b=Jm03VolwIQB3+WpAZVhCJX5m/Plpvj8RUDWHMOhW1yoOPuQQeTol9+MbnKFrLOtReQ ZZSbplpHZZYUAhhujR806iKOLioypqLf+yYuKoxcc4D0k+sVU2DTQTXfxkzPe/Ow+Tek cQ6VTSupK9LyoQjBXPxPMOxAb7ieFPKDcwVGA7A4PPG0PiCkzL4odOeu9EO+t2yJVUda AvTT89Dj9RpjRZoQAPw2yXL7kDjrLg48mJ6qJA2aJRV9ql9bvVAHupLCKho6PkZb6Ll5 Xj64VoJm92YSSVPUWiLQvPWJdsnI8NPb2+xQNLfoCzFtocq2Jxn+5Cu6vI6mdKM2vaHK x7lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r62si2804047qkh.90.2017.11.15.03.01.59; Wed, 15 Nov 2017 03:01:59 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1DCA9607C2; Wed, 15 Nov 2017 11:01:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B8816606A1; Wed, 15 Nov 2017 11:00:40 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DCD1A6038B; Wed, 15 Nov 2017 11:00:26 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id F2B986038F for ; Wed, 15 Nov 2017 11:00:15 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 721DF188C19 for ; Wed, 15 Nov 2017 14:00:14 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HHNoLF6dFB-0E2OBNgC; Wed, 15 Nov 2017 14:00:14 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 85x2bh5VFm-0Dw8mhEj; Wed, 15 Nov 2017 14:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 15 Nov 2017 14:00:09 +0300 Message-Id: <1510743612-1242-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510743612-1242-1-git-send-email-odpbot@yandex.ru> References: <1510743612-1242-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v5 1/4] api: std_types: add odp_percent_t data type X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan odp_percent_t is used to express values which are percentages Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 277 (bala-manoharan:RED) ** https://github.com/Linaro/odp/pull/277 ** Patch: https://github.com/Linaro/odp/pull/277.patch ** Base sha: ba93e355ddf151215aa18b59cbfca08fe175fe65 ** Merge commit sha: 4f0291a1c2fcd19243f1ced69f46d9b2d58fedb7 **/ include/odp/api/spec/std_types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/odp/api/spec/std_types.h b/include/odp/api/spec/std_types.h index ec6a6df6d..f5eddd285 100644 --- a/include/odp/api/spec/std_types.h +++ b/include/odp/api/spec/std_types.h @@ -15,6 +15,8 @@ #ifndef ODP_API_STD_TYPES_H_ #define ODP_API_STD_TYPES_H_ #include +/* uint64_t, uint32_t, etc */ +#include #ifdef __cplusplus extern "C" { @@ -32,6 +34,14 @@ extern "C" { */ /** + * @typedef odp_percent_t + * Use odp_percent_t for specifying fields that are percentages. It is a fixed + * point integer whose units are expressed as one-hundredth of a percent. + * Hence 100% is represented as integer value 10000. + */ + +typedef uint32_t odp_percent_t; +/** * @} */