From patchwork Wed Nov 8 14:00:11 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: 118259 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5323275qgn; Wed, 8 Nov 2017 06:00:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+QxE05MhZzZQmHCB6YFMUgs2FRSkBk1rhKOC7MXA9zOKWT/e3n8F34dW1hPj+ReTpNt3UUp X-Received: by 10.200.38.194 with SMTP id 2mr896036qtp.196.1510149637319; Wed, 08 Nov 2017 06:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510149637; cv=none; d=google.com; s=arc-20160816; b=LA6pHHqsEJOMjXuD8Q2TN2AdKtpSeNnXLT+vCs3yBWfGq0KZKqRRKxvsMPIQGRGl4t k2vhVHhbV4YMWuLjCpF5SGxdlUMFdBcqw+Y8ludxugrwFwuN8Ff9ZtuRYpM6OiO+K9az O6618wNs+KIAJajEDavvvN53pn4GT6ueyJSEn+wY05zevlC9Rj3myiPCjopjCmMhFfLg 8/0khSmA0sg5AVLmJYpMj8KotEwlh2vGju3j3jOkBqPr9Mkn0diiC2h58wwNFfeLoBOQ hpHDilWJYEkjeLA9YabWjRqLP+maQPhxJdkscV5UUqk6LNAn93KxsoG5DAyKe1Hg2bYl mZCQ== 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=cyjmuCdQ6fnROop+n4GHdhSD1rENdW9HoKD17R+DOxI=; b=APUuyvcmQk6LSB5WyVLxa444+HOy5KTmmcvOfMciS18kCOrD7w7pVy59rVFk7skXxw gJNfQYw2SHBWntawKpGvauR7WpqhlN3DMq3P7ZaKSgwg4GzYS9aJ7HSFgObzxTzI5gvv HpBcbEX/5YSj1M8M6ZdIO3xt72hK3RElPXDIUhtrom8MT+Xgn+tgTZS+6Qg33gtlDDY7 ZAdURo0fd0u+AZDw0boBpLpxXC2lvG/QySxd9H+Oh7O2v/d4bbZdhK98BY7cubwn7LTP 6s9VyOfmZ38YdBKbU9HE4nDxDAQhQqjN4Q2eKANI9wC/N3Tv77M7/8kqlKc3Wq/3soqP 48Kg== 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 i32si4049042qkh.473.2017.11.08.06.00.36; Wed, 08 Nov 2017 06:00:37 -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 8EF2060C29; Wed, 8 Nov 2017 14:00:36 +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,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 61E61606A1; Wed, 8 Nov 2017 14:00:28 +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 AFD7D60B56; Wed, 8 Nov 2017 14:00:20 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id A11EC606A1 for ; Wed, 8 Nov 2017 14:00:18 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 6E32C5601FFD for ; Wed, 8 Nov 2017 17:00:16 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id LdNJmsFmjr-0Gv4f77a; Wed, 08 Nov 2017 17:00:16 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id YHHquvKMKk-0Fh4O3Lu; Wed, 08 Nov 2017 17:00:15 +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, 8 Nov 2017 17:00:11 +0300 Message-Id: <1510149614-31459-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510149614-31459-1-git-send-email-odpbot@yandex.ru> References: <1510149614-31459-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 277 Subject: [lng-odp] [PATCH API-NEXT v2 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: 4c2f383b93c80fa98e8e676897db02dbc8b56112 **/ 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; + /** * @} */