From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.65.109; helo=eur01-he1-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-oln040092065109.outbound.protection.outlook.com [40.92.65.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BCAFE21F6A6FE for ; Wed, 28 Feb 2018 13:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=t1bVxPRaoFvE73IFFnnAv9v3u9bX0L2nNL/OlG6fGVc=; b=DttrfnKGr5Pvy9LtNZua3cYlNCc+FY7bM9q7u3W6NBS/VyDgQlbkkaWG5jwLxByqBm2+2U0Nov27jGTbLRU/b63FiR3nuNlh//9+ZdynkEb8gVg0MW1bNfIDvX4Mm9I4KKCKdloXyaRHSLD7MuCxOPOo2W/in224PAXpeLxlg8iF+QkCs9/huX0yJ4CUcRA8mv3kiD+gHGLIZW21M5Dp9PYlcTMHImHFKScu4pkKOdpirSlg6XyhTYKuFR5qN7l2udFK16lExDGbdKhIkVGbJl9uNo6O1pnGSbLhlUh4y8WXmRW06QTo5pvPOfSJC8SOxojJseMvlilvzPH1Xk9+Fg== Received: from DB5EUR01FT054.eop-EUR01.prod.protection.outlook.com (10.152.4.58) by DB5EUR01HT193.eop-EUR01.prod.protection.outlook.com (10.152.5.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Wed, 28 Feb 2018 21:07:23 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com (10.152.4.54) by DB5EUR01FT054.mail.protection.outlook.com (10.152.5.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15 via Frontend Transport; Wed, 28 Feb 2018 21:07:23 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::7d81:9d96:1051:d20d]) by AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::7d81:9d96:1051:d20d%14]) with mapi id 15.20.0527.021; Wed, 28 Feb 2018 21:07:23 +0000 From: =?utf-8?B?TWFydmluIEjDpHVzZXI=?= To: "edk2-devel@lists.01.org" , "lersek@redhat.com" CC: "michael.d.kinney@intel.com" , "liming.gao@intel.com" Thread-Topic: [edk2] [PATCH 1/2] MdePkg/Base.h: Ensure safe bitwise operations. Thread-Index: AQHTr+q3IxS4cmiO9UyN5haxybivfqO4qaYAgAAEg7CAAPiiAIAABh8ggAArWgCAAAM54IAASqVwgAApSXA= Date: Wed, 28 Feb 2018 21:07:23 +0000 Message-ID: References: <62c9363b-7f27-cfff-492a-560660727b86@redhat.com> <366ffc0c-b55f-a3c1-973e-b80d3dd07d26@redhat.com> <2b22bfbd-24ce-e26c-9f1c-e5ba2816b48f@redhat.com> In-Reply-To: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:5B55F6D648299C795B065FB65F1993BBD48D90A369BFA5041972FD0F5D0FEF78; UpperCasedChecksum:41FA79DC848CA76C0C44C02020D100746415D15082D25C2F543B0F0B79137089; SizeAsReceived:7796; Count:46 x-tmn: [vKTKQNlawkjx4U/y5w7KjgFK9IrhftaD] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT193; 6:n57QjUHGkdMEsIrA10jDk5F2cojG2HQg5oC9cthTfC7SnkT9IJYW6VrcOSQGE7ImU+Dj3RA7+UC7sYEFJFyCY5RJh8MIzMsW8StF9I/tfY/92Eoo4+6gX9FjW5W5MCeJHQd1cQYw1yJK61PzqhXGdVBnk8y+y7XO09bXYJgII0Le/wTPUr7Sm6OJfCqS2elnoe+0cYARZLjRfRpww3dOr75DwVQRrQtaG5WxaRuFe3VhO5xJBv9Gw6mW1lAe4p6IPM4qd9qOmtO2RlhdytOEoFPuohK6sSAEWf+Q5Zaop5BPuXNAQeKV6P2h6OdMNpGSVqazvQDNN2M5jWdHjRpN8rrcxicG4hUpgYDY/5i/Djc=; 5:mE5O/Nb3RXBoKnuiJ2vcBMYczM7bil8M42vZzQvvAMz/kR0L9OIeETYDfHQHQhh3gfQv+zxbiTb+RGEuLLfHs8dRwsK/xUJI1wBaoqsALA16BJJhb6vbzV3SakjJzzpr8m7wFjF4sjj4ghRL864OC9vHmPV+RI2V9HAKs9grmVc=; 24:Nz8VLsHUzIuKqDqYs0KhU8pV8YTD/JGb1v+zApfwQywtL8ESluSFl/iQ0JrsqT6SXxifZ3hN9IZn65k9fBsBBPyNcDo9VYcnEDI7Y4ytePM=; 7:2z0CxiGr6SXhpU3J2VQ2ffjOQ0+kXuSfx3x3iWcA40mNSC44qAvszufisYZYr3LX0g/1CY5dRGDdR1Uaoqiu8tzQa+dEWzI7swsnouV7aPQdFWsCU+RUNGUwtcKNglucObs+hFhMoZwZFKVRN/Ulyo26U7b72pRTD9Un7iHxupgxzR4GferOHjY2mi7PRc0AkbARC3S5TX4t3YupDm+AW1EAnCIW22HPfg3KjWvR4wXVV8YnAzDZPB17K84+5JPy x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045); SRVR:DB5EUR01HT193; x-ms-traffictypediagnostic: DB5EUR01HT193: x-ms-office365-filtering-correlation-id: f8b5e7d0-23b4-420a-fd43-08d57eef4344 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT193; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT193; x-forefront-prvs: 0597911EE1 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT193; H:AM4PR06MB1491.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8b5e7d0-23b4-420a-fd43-08d57eef4344 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2018 21:07:23.2733 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT193 Subject: Re: [PATCH 1/2] MdePkg/Base.h: Ensure safe bitwise operations. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 21:01:20 -0000 Content-Language: de-DE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 T25lIGNvbW1lbnQgaXMgaW5saW5lLg0KDQpUaGFuayB5b3UgaW4gYWR2YW5jZSwNCk1hcnZpbi4N Cg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBlZGsyLWRldmVsIDxlZGsy LWRldmVsLWJvdW5jZXNAbGlzdHMuMDEub3JnPiBPbiBCZWhhbGYgT2YgTWFydmluDQo+IEjDpHVz ZXINCj4gU2VudDogV2VkbmVzZGF5LCBGZWJydWFyeSAyOCwgMjAxOCA3OjQ2IFBNDQo+IFRvOiBl ZGsyLWRldmVsQGxpc3RzLjAxLm9yZzsgTGFzemxvIEVyc2VrIDxsZXJzZWtAcmVkaGF0LmNvbT4N Cj4gQ2M6IG1pY2hh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