From patchwork Thu Nov 12 17:05:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 56441 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp535058lbb; Thu, 12 Nov 2015 09:07:23 -0800 (PST) X-Received: by 10.55.79.68 with SMTP id d65mr17220573qkb.35.1447348043558; Thu, 12 Nov 2015 09:07:23 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y65si12236912qhy.43.2015.11.12.09.07.22; Thu, 12 Nov 2015 09:07:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id A5BC962016; Thu, 12 Nov 2015 17:07:22 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,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 5756A62024; Thu, 12 Nov 2015 17:06:11 +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 405B16201E; Thu, 12 Nov 2015 17:05:56 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id 91E5861A21 for ; Thu, 12 Nov 2015 17:05:53 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so39126839lbb.3 for ; Thu, 12 Nov 2015 09:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hd8qyS0XJSeNN3/kMOYGFsVnyWyzK5ckAPwObS7SrFA=; b=UA+Xj0LdN3J5f1u3ofcTHokPAjF/dy+LXs/HGXirZI0D0KdxbCUhRIj5qzensbdioY 9NAUdDbb9CgtYylpZTbz8l/06odsJyx5AIi2VXTYVcHERvsNWR9o92kJKncrw6kw4tZM B8dYNKjQihZfklmXzwdquGtsrs1kb7GvTd2QcuBmrjHRBZ/9RkKnu1nAecM18DwPPX1V /wPqm2GEOfDJ6+9u6COBSVHm4OhIdoHXJ4WPITK+9ZD5V5IGMjbwdDK4VxzE0XNwNEIK OSCHksITShT4siE6FRZ8p+RfPeQ/WKhzhX/caQGzLQ6qgulqzy3UHMlpFPVRk9tQg1Sw rcHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Hd8qyS0XJSeNN3/kMOYGFsVnyWyzK5ckAPwObS7SrFA=; b=IBbV0EzsU9SDei75o8HSX++Fzv4K+4XqcQMcjtCUe9j9GChQM+HIqCSifumMr5bTVk mRfc4cAtj3tHukU9MZrXARjCFyW/7QqSd55HUmpdgMKLRQcv70BjiKSdf1MzDtWrqZuQ QGM13YthHvP23relJUiPyP0vfvL+M/D5iSmWTxuvOd+TIFmxO+3EhKWg/t8Ag7LyUmwy tizBSr2sfDh2YeRCkK9Liz0xjGHJPBZmWrTjII2WPGgvJ0nm5GH46BVjXD+9kpwLG86Q zXB+ZknnIXsQ1CksVailcA676o2ax7WdUM067f8Zadw1K968lEj9aeBdJWMz/UrviYpP RCKA== X-Gm-Message-State: ALoCoQliGF67AKUZjdOcrYvUx0Y79cqEJTGE8FACQifrUxaO07nRZXjqYivIoHro1gi/Sg/SBz+q X-Received: by 10.112.11.163 with SMTP id r3mr7929580lbb.8.1447347952429; Thu, 12 Nov 2015 09:05:52 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id nb1sm2412412lbb.9.2015.11.12.09.05.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 09:05:51 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 12 Nov 2015 19:05:37 +0200 Message-Id: <1447347943-16807-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447347943-16807-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1447347943-16807-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [lng] [PATCH 1/7] api: time: use signed long for ODP_TIME_* 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Use signed long for ODP_TIME_*, that's enough and it allows to compare it with signed types, used for instance in timespec type. Signed-off-by: Ivan Khoronzhuk --- include/odp/api/time.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/odp/api/time.h b/include/odp/api/time.h index 50a0bf5..2bddb56 100644 --- a/include/odp/api/time.h +++ b/include/odp/api/time.h @@ -24,9 +24,9 @@ extern "C" { */ /* Time in nanoseconds */ -#define ODP_TIME_USEC_IN_NS 1000ULL /**< Microsecond in nsec */ -#define ODP_TIME_MSEC_IN_NS 1000000ULL /**< Millisecond in nsec */ -#define ODP_TIME_SEC_IN_NS 1000000000ULL /**< Second in nsec */ +#define ODP_TIME_USEC_IN_NS 1000L /**< Microsecond in nsec */ +#define ODP_TIME_MSEC_IN_NS 1000000L /**< Millisecond in nsec */ +#define ODP_TIME_SEC_IN_NS 1000000000L /**< Second in nsec */ /** * @typedef odp_time_t