From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=180.169.121.91; helo=zxshcas1.zhaoxin.com; envelope-from=tigerliu@zhaoxin.com; receiver=edk2-devel@lists.01.org Received: from ZXSHCAS1.zhaoxin.com (unknown [180.169.121.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 32D0121E0B9E0 for ; Tue, 6 Feb 2018 00:47:56 -0800 (PST) Received: from zxbjmbx2.zhaoxin.com (10.29.252.164) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 6 Feb 2018 16:53:33 +0800 Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by zxbjmbx2.zhaoxin.com (10.29.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 6 Feb 2018 16:53:32 +0800 Received: from zxbjmbx3.zhaoxin.com ([fe80::57b:6f00:3193:d8a6]) by zxbjmbx3.zhaoxin.com ([fe80::57b:6f00:3193:d8a6%8]) with mapi id 15.01.1261.035; Tue, 6 Feb 2018 16:53:32 +0800 From: "Tiger Liu(BJ-RD)" To: "afish@apple.com" CC: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [EDK2] How to use compiler intrinsic function, such as :mmintrin.h Thread-Index: AdOfJ+04JoQz160TT06WOOrpdqj7OA== Date: Tue, 6 Feb 2018 08:53:31 +0000 Message-ID: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.29.24.8] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Re: How to use compiler intrinsic function, such as :mmintrin.h 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: Tue, 06 Feb 2018 08:47:57 -0000 Content-Language: zh-CN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksIEFuZHJldzoNClRoYW5rcyBhIGxvdCENCg0KQmVzdCB3aXNoZXMsDQrlj5Hku7bkuro6IGFm aXNoQGFwcGxlLmNvbSBbbWFpbHRvOmFmaXNoQGFwcGxlLmNvbV0NCuWPkemAgeaXtumXtDogMjAx OOW5tDLmnIg25pelIDEzOjAxDQrmlLbku7bkuro6IFRpZ2VyIExpdShCSi1SRCkgPFRpZ2VyTGl1 QHpoYW94aW4uY29tPg0K5oqE6YCBOiBHYW8sIExpbWluZyA8bGltaW5nLmdhb0BpbnRlbC5jb20+ OyBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0K5Li76aKYOiBSZTogW2VkazJdIFtFREsyXSBIb3cg dG8gdXNlIGNvbXBpbGVyIGludHJpbnNpYyBmdW5jdGlvbiwgc3VjaCBhcyA6bW1pbnRyaW4uaA0K DQpUZWNobmljYWxseSBzcGVha2luZyB0aGUgY29tcGlsZXIgZ2VuZXJhdGVzIHRoZSBjb2RlIGZv ciB0aGUgaW50cmluc2ljcyBidXQgdGhlIGNvbXBpbGVyIHNwZWNpZmljIGluY2x1ZGUgZmlsZXMg Z2VuZXJhbGx5IGRvbid0IGp1c3Qgd29yayBhcyB0aGV5IGFyZSBidWlsdCB0byBpbmNsdWRlZCBp biB0aGUgY29udGV4dCBvZiB0aGF0IGNvbXBpbGVycyBDIGxpYi4NCg0KSSd2ZSBoYWQgc29tZSBs dWNrIHVzaW5nIGludHJpbnNpY3MgZnJvbSBjbGFuZywgYnV0IHlvdSBoYXZlIHRvOg0KMSkgTWFr ZSB5b3VyIG93biB2ZXJzaW9uIG9mIHRoZSBpbnRyaW5zaWMgaGVhZGVyIHBvcnRpbmcgaXQgdG8g d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