From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70A84A0579; Thu, 1 Apr 2021 13:22:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B4B2141078; Thu, 1 Apr 2021 13:22:53 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 20A6F4067B for ; Thu, 1 Apr 2021 13:22:51 +0200 (CEST) IronPort-SDR: GzkFDcHk/2dGjT/RexD3PKlOrLzpFqknRW4zUw0aa1DYTvr+MQOAf6N8JN5/yYSkfHyVQkBU8y r7TJTTUDKlAw== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="253560258" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="253560258" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 04:22:51 -0700 IronPort-SDR: nbVKzhcIRfcmGcryRQ7H2cqv/O3au+S9erntXN2lwbUmxI/SLZgSafYKEy50gGlulxwsfY4Z4e fvEh2SF+DJ7w== X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="596300888" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.213.250.93]) ([10.213.250.93]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 04:22:50 -0700 To: Tyler Retzlaff , dev@dpdk.org Cc: david.hunt@intel.com, mb@smartsharesystems.com References: <1615333490-15243-1-git-send-email-roretzla@linux.microsoft.com> <1615853611-7253-1-git-send-email-roretzla@linux.microsoft.com> From: "Burakov, Anatoly" Message-ID: Date: Thu, 1 Apr 2021 12:22:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <1615853611-7253-1-git-send-email-roretzla@linux.microsoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] eal, power: use UINT64_MAX and UINT32_MAX X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 16-Mar-21 12:13 AM, Tyler Retzlaff wrote: > Use UINT64_MAX and UINT32_MAX instead of -1 or ~0 literal variations > of different explicit widths when creating masks and sentinel values. > > some compilers generate a warning when applying a '-' to an unsigned > literal so avoid this by initializing with unsigned preprocessor > definitions where appropriate. > > Signed-off-by: Tyler Retzlaff > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly