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 6CF0448BD2; Sat, 29 Nov 2025 03:17:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC8B14021F; Sat, 29 Nov 2025 03:17:22 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 05AE34013F for ; Sat, 29 Nov 2025 03:17:21 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id A673F20698; Sat, 29 Nov 2025 03:17:21 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: RE: [PATCH v3] eal/x86: optimize memcpy of small sizes Content-Transfer-Encoding: base64 Date: Sat, 29 Nov 2025 03:17:16 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F655A0@smartserver.smartshare.dk> In-Reply-To: <11d412346d5548c5a5a3bf578b86f4ee@huawei.com> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v3] eal/x86: optimize memcpy of small sizes Thread-Index: AQHcWtNXD+EKJWk0k0O6HEmUv7nh0LUIKREQgAAduhCAACfB0IAAh3yA References: <20251120114554.950287-1-mb@smartsharesystems.com> <20251121104052.1273637-1-mb@smartsharesystems.com> <59db9d3d83d94ec9a7c26ae506fd4813@huawei.com> <98CBD80474FA8B44BF855DF32C47DC35F6559E@smartserver.smartshare.dk> <11d412346d5548c5a5a3bf578b86f4ee@huawei.com> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Konstantin Ananyev" , , "Bruce Richardson" , "Konstantin Ananyev" , "Vipin Varghese" Cc: "Stephen Hemminger" 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 PiBGcm9tOiBLb25zdGFudGluIEFuYW55ZXYgW21haWx0bzprb25zdGFudGluLmFuYW55ZXZAaHVh d2VpLmNvbV0NCj4gU2VudDogRnJpZGF5LCAyOCBOb3ZlbWJlciAyMDI1IDE5LjExDQo+IA0KPiA+ ID4gRnJvbTogS29uc3RhbnRpbiBBbmFueWV2IFttYWlsdG86a29uc3RhbnRpbi5hbmFueWV2QGh1 YXdlaS5jb21dDQo+ID4gPiBTZW50OiBGcmlkYXksIDI4IE5vdmVtYmVyIDIwMjUgMTUuMDMNCj4g PiA+DQo+ID4gPiA+ICsvKioNCj4gPiA+ID4gKyAqIENvcHkgYnl0ZXMgZnJvbSBvbmUgbG9jYXRp b24gdG8gYW5vdGhlciwNCj4gPiA+ID4gKyAqIGxvY2F0aW9ucyBzaG91bGQgbm90IG92ZXJsYXAu DQo+ID4gPiA+ICsgKiBVc2Ugd2l0aCBuIDw9IDE2Lg0KPiA+ID4gPiArICoNCj4gPiA+ID4gKyAq IE5vdGU6IENvcHlpbmcgdW5pbml0aWFsaXplZCBtZW1vcnkgaXMgcGVyZmVjdGx5IGFjY2VwdGFi bGUuDQo+ID4gPiA+ICsgKiBVc2luZyBlLmcuIG1lbWNweShkc3QsIHNyYywgOCkgaW5zdGVhZCBv Zg0KPiA+ID4gPiArICogKih1bmFsaWduZWRfdWludDY0X3QqKSA9ICooY29uc3QgdW5hbGlnbmVk X3VpbnQ2NF90ICopc3JjDQo+ID4gPiA+ICsgKiBhdm9pZHMgY29tcGlsZXIgd2FybmluZ3MgYWJv dXQgc291cmNlIGRhdGEgbWF5IGJlDQo+IHVuaW5pdGlhbGl6ZWQNCj4gPiA+ID4gKyAqIFstV21h eWJlLXVuaW5pdGlhbGl6ZWRdLg0KPiA+ID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