From patchwork Thu Nov 9 18:00:13 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: 118476 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1222061edl; Thu, 9 Nov 2017 10:04:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMaS8D3eMmthxH4FkZamfU/IZZAhc4PXi7oyFJH+PNztljFn0fsP03w/pL1PAk6vPKwhXsMh X-Received: by 10.200.43.193 with SMTP id n1mr2290975qtn.101.1510250690115; Thu, 09 Nov 2017 10:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510250690; cv=none; d=google.com; s=arc-20160816; b=eacsXaBmd4QxxhX3OR4EJy/uwg/jsitxwBRr6aQXG/WZeHjSrUfvjysu8LVqR8y3Vn LJBPnM2MI6t0BxU+0ytwOt0q+4fjGuFkyqzuWtUum+nLEtl07uW1bOvZ9UimQz26GQDv xlmwbb4lcmHbRdqvfreT6mAKIkIqUy9Pe0pM6Yvr/grNFiNG7EMOcNkuHF92qo/QWzpj EYkS0iXYjfLEkbTWW7edC6yDFzOlkAclBBOGH1H7pMGZoI5q5jH6QF/JncHgmVZ0URDM WU5LSPQS6+r9bSEj5Af8fAydBcb5J/IrBG2BNZdlWeGk4UsLCHHD2x/an5jdgjkL6VvB LwIA== 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=LNmDAEoDIxq+siyiTQZyHWi+JazNXovQJX/txc2YGmY=; b=OghWXCBfYjZIlqcYhtZhJ7kM6gVmcAfezQ2VmywCHVQV3G6taTCyamWyi+ucRCidCM 64Crsob2kZlaE70lug6M8y9g8qYETNawTziwdO/bZb1ytks5Wfaldkx2o0e5bBMrFJo5 GsRbGccASbX3eJ5xC0z2F8c4fq6h09ZJznJtf8NXkv/N1wk4E/OU846V+KHtdnMi/DUo BXoGI+aFo3yBwwttTEzDgwpxvtFvF/Ec3Qw3SLZvm9cp21oHlMm331wypRfrQuHArvpm +WM3mhQkk89pUtPmnUOtCBnf51s4CZ2GhIk+gI1NRIMsPnvjpzrhBh6LRVKIQx2KEOMn fnOg== 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 a124si437261qkd.293.2017.11.09.10.04.49; Thu, 09 Nov 2017 10:04:50 -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 AF1AA60CCE; Thu, 9 Nov 2017 18:04:49 +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 0D9CF6101E; Thu, 9 Nov 2017 18:01: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 34B9060A54; Thu, 9 Nov 2017 18:01:03 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 337EB609FF for ; Thu, 9 Nov 2017 18:00:20 +0000 (UTC) Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 0DA4A2187BB3 for ; Thu, 9 Nov 2017 21:00:18 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xArN9xlxAq-0IRGnYaw; Thu, 09 Nov 2017 21:00:18 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ej6QpjG6ho-0HnOoYmi; Thu, 09 Nov 2017 21:00:17 +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: Thu, 9 Nov 2017 21:00:13 +0300 Message-Id: <1510250416-6484-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510250416-6484-1-git-send-email-odpbot@yandex.ru> References: <1510250416-6484-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v4 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: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: 0f3d27771374d5b525af19461f31d0e308b05874 **/ 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; + /** * @} */