From patchwork Thu Nov 12 17:44:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 56448 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp555380lbb; Thu, 12 Nov 2015 09:46:11 -0800 (PST) X-Received: by 10.140.251.215 with SMTP id w206mr18676934qhc.25.1447350370954; Thu, 12 Nov 2015 09:46:10 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f123si12358027qhf.105.2015.11.12.09.46.10; Thu, 12 Nov 2015 09:46:10 -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 1990F6202F; Thu, 12 Nov 2015 17:46:10 +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_H3, RCVD_IN_MSPIKE_WL, 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 6E47862006; Thu, 12 Nov 2015 17:45:26 +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 766DB62025; Thu, 12 Nov 2015 17:45:16 +0000 (UTC) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by lists.linaro.org (Postfix) with ESMTPS id 72BED62025 for ; Thu, 12 Nov 2015 17:45:15 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so39810615lbb.3 for ; Thu, 12 Nov 2015 09:45:14 -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=fguPqgk/8251pY4swNR/MrL0RKCZw5ji9ipGzC/c+YixJYC0neJzFnVwrkMq8ERgPf TZ+j8HqfLHNuInXnnASrZKtMbs+VNnoa4n1T2LLNbr4lNk52Sw7bgyONCGacyjFqYK/K /VQD5DRbmvYTrYffKLUn1qj7DcV3htfi5nzsjGd0Z8nBJul3ORVzHXwfMoJatLpUxLks 4vhGg1SkVwwEHvCdtZQJ0i+q5zOzlA7RwQ0fydJuxNeE2CqwrhYJZjo0vvibHuvIvSLz axeF9wOTq2694ZkSCleu//fkFwIo++QOZntd7CMewcr6WSDKX/MTki2D66Z3IewuvdTL gOHw== 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=lX3GiAkJTUzA5GfWG8e9i0Ez2jbwdQYxwyntbmJEkWd6oe0A9QZ7usHhwTdR/hk8pv lYzgDKf1bdW0MkdQXyCQEmOYdt85wWJuorxIrEq4BDqp2aKdsM1MIZK3pntUr6z2GXrI G+86xSmNGPKpnwuB9Wp4TIT5WlgvSlTV+fn4HYOL95RhXx7Yv3ZGBOmKTbI2knHZvihz UASls7Y7lcf0/W3pc/53f43VtkWLi5Q+fG/H7QyqcDJzZKycBAIGFAn3+gbR/OJmxMb9 67tuocF4CGKi8IMgExrLiVtnusFSswgA5lnBQXjjTLT5We/tTRJz5A3UIkyAmpuQSJ4K CSVg== X-Gm-Message-State: ALoCoQlwpCrPx08usLL1r5oR4pX7mOu1qrgqgCY7HdN2Fibs9bgAaYrwbdb3I3ONCaiAdmUhTTs5 X-Received: by 10.112.235.65 with SMTP id uk1mr7910486lbc.118.1447350314194; Thu, 12 Nov 2015 09:45:14 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id k14sm2350983lfb.49.2015.11.12.09.45.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 09:45:13 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 12 Nov 2015 19:44:59 +0200 Message-Id: <1447350305-3254-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447350305-3254-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1447350305-3254-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [lng] [API-NEXT PATCH v2 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