From patchwork Mon Nov 6 13:00:00 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: 118027 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2737059qgn; Mon, 6 Nov 2017 05:00:28 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q8XwJ+f9UYHVmYFOfK7iI6cAPrj1uInHAWUUj6jGhy7dcdm69TQR89eZ/czJXXK4POau9z X-Received: by 10.237.35.244 with SMTP id k49mr22338018qtc.87.1509973227993; Mon, 06 Nov 2017 05:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509973227; cv=none; d=google.com; s=arc-20160816; b=0aZR+nLMKBaKZhYr1c45Iq+GBbnokdE+JPSQlVo6u6lNrZ6Qp2UirckM6olIQ9jCfb hIKias9TUNMRH58eJk+HRH24GHiVIs0RdbSKyQNuFX9MENR5TmNsZz8iYgrqob4xw4lZ k0j4hOgwRyZt0YLe41NtyofSXe9C09QpD8VY17FrES11IlYRXKygi2h2nwo2J9PaW3x0 6g0OBVS6si4rlLNXkfwodqSuI+BBPaj6uW95rwvQw9lqlQH0y5dEsNc1+3KnuMajJxSu BoceRs8nNc3Lzy10RuoPVxMi6YpUJeddH6FF8B8rI45ok+5BFDkdTR8v/nax9HRhD7iu iA9A== 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=T+dId5NDM5X8AZHSd+3Ugrv92ZbORTqpfe0wQSyHFgk=; b=xBJPDBnu3jsoTU4Z3hM3ecbRiVgBI1/pFR4eqlPVnFvdIuZQowD+ffoCF/96Dpz99E cHN79bGhuY4A9E++MEuTitw8sRgEfvCKMk+YC9M9bi2mVA/oazE1ytdWPjG7KrzmlCjg buGb9uxXVlxXeODQcso/9z4lySnMAhKA5Dr7TOPUmfxXjw0ULRNuLgYZRcclEXtY9lbO xBH6tXHQd3RosFMmSA38tI6tNK2/+ZnprdqfCzyq2VFfg6qXNpRsxAdgPvVwMcPHZzF8 eaa3jUepAQq8WA7sDj7zCqM1q6X+A1aKs8eVO3iH8g06UCIWLHk7+Bd65Gfi21KwJzOO 7YnQ== 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 q34si2545414qtg.31.2017.11.06.05.00.27; Mon, 06 Nov 2017 05:00:27 -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 4008A6069B; Mon, 6 Nov 2017 13:00:27 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 BB6946069F; Mon, 6 Nov 2017 13:00:20 +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 898256069B; Mon, 6 Nov 2017 13:00:11 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 5CE8A6069B for ; Mon, 6 Nov 2017 13:00:10 +0000 (UTC) Received: from mxback16j.mail.yandex.net (mxback16j.mail.yandex.net [IPv6:2a02:6b8:0:1619::92]) by forward100j.mail.yandex.net (Yandex) with ESMTP id D4F8D5D84BAF for ; Mon, 6 Nov 2017 16:00:08 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback16j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oQvSL6hLKr-08YinwFh; Mon, 06 Nov 2017 16:00:08 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nU8zA9xMmR-08h45iGA; Mon, 06 Nov 2017 16:00:08 +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: Mon, 6 Nov 2017 16:00:00 +0300 Message-Id: <1509973206-1972-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> References: <1509973206-1972-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v1 1/7] 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: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: f8726f45026a85ce1dde794190c1eb35945dca3f **/ include/odp/api/spec/std_types.h | 7 +++++++ platform/linux-generic/include/odp/api/std_types.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/include/odp/api/spec/std_types.h b/include/odp/api/spec/std_types.h index ec6a6df6d..97f5ad994 100644 --- a/include/odp/api/spec/std_types.h +++ b/include/odp/api/spec/std_types.h @@ -32,6 +32,13 @@ 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. + */ + +/** * @} */ diff --git a/platform/linux-generic/include/odp/api/std_types.h b/platform/linux-generic/include/odp/api/std_types.h index b61f33f4c..2104db03d 100644 --- a/platform/linux-generic/include/odp/api/std_types.h +++ b/platform/linux-generic/include/odp/api/std_types.h @@ -29,6 +29,8 @@ extern "C" { typedef int odp_bool_t; +typedef uint16_t odp_percent_t; + /** * @} */