From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6609A208F7AD7 for ; Tue, 12 Sep 2017 01:44:03 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Sep 2017 01:46:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,382,1500966000"; d="scan'208";a="1013506250" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 12 Sep 2017 01:46:59 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 12 Sep 2017 01:46:58 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 12 Sep 2017 01:46:58 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.39]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.168]) with mapi id 14.03.0319.002; Tue, 12 Sep 2017 16:46:56 +0800 From: "Zeng, Star" To: Laszlo Ersek , "Bi, Dandan" , edk2-devel-01 CC: "Ni, Ruiyu" , "Dong, Eric" , "Ard Biesheuvel" , "Zeng, Star" Thread-Topic: [edk2] [PATCH 4/5] MdeModulePkg/PartitionDxe: don't divide 64-bit values with C operators Thread-Index: AQHTKcmgR0MdPYax8E6a7BTjL8/xkaKwOdAAgAAmZACAAJK6QA== Date: Tue, 12 Sep 2017 08:46:56 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B9400BB@shsmsx102.ccr.corp.intel.com> References: <20170910001304.8628-1-lersek@redhat.com> <20170910001304.8628-5-lersek@redhat.com> <3C0D5C461C9E904E8F62152F6274C0BB3B96FA5D@shsmsx102.ccr.corp.intel.com> <8e68d0c5-76c0-8a1d-bd38-5bb1a6c6b918@redhat.com> In-Reply-To: <8e68d0c5-76c0-8a1d-bd38-5bb1a6c6b918@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 4/5] MdeModulePkg/PartitionDxe: don't divide 64-bit values with C operators X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 08:44:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UmV2aWV3ZWQtYnk6IFN0YXIgWmVuZyA8c3Rhci56ZW5nQGludGVsLmNvbT4NCg0KSSBhbSBub3Qg c3VyZSB3aGV0aGVyIHRoZSBvdGhlciBwYXRjaGVzIGluIHRoaXMgc2VyaWVzIGhhcyBiZWVuIHJl dmlld2VkIG9yIG5vdC4NClNpbmNlIHRoaXMgcGF0Y2ggaXMgZml4aW5nIGJ1aWxkIGJyZWFrLCBJ IHRoaW5rIHdlIGNhbiBoYXZlIHRoaXMgcGF0Y2ggcHVzaGVkIGZpcnN0IGFmdGVyIHJldmlld2Vk LiBBbmQgcmVhbGx5IGFwcHJlY2lhdGUgdGhhdC4gOikNCg0KVGhhbmtzLA0KU3Rhcg0KLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IExhc3psbyBFcnNlayBbbWFpbHRvOmxlcnNla0By ZWRoYXQuY29tXSANClNlbnQ6IFR1ZXNkYXksIFNlcHRlbWJlciAxMiwgMjAxNyAzOjU5IFBNDQpU bzogQmksIERhbmRhbiA8ZGFuZGFuLmJpQGludGVsLm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