From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F03CFA0350; Wed, 24 Jun 2020 15:14:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6E951D918; Wed, 24 Jun 2020 15:14:57 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 2921F1D73A for ; Wed, 24 Jun 2020 15:14:56 +0200 (CEST) IronPort-SDR: XVmmC7Tb/1mqDxlOqWfV0lVBH1GhOjmfVRoxkTLM2pcYy6/rrDs4Dff5+U88SLLeTX3l0RHfM0 dsPOnlzaZVpg== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="131890351" X-IronPort-AV: E=Sophos;i="5.75,275,1589266800"; d="scan'208";a="131890351" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2020 06:14:55 -0700 IronPort-SDR: AkwvW3yqVS7SGYSiPFGW/xLw8Zuzl2dGeSDscK4eD3EhUFxqoQkIidkxZafozMwxSQ/9qv0eDw mr5/OgdQuDqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,275,1589266800"; d="scan'208";a="423363276" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga004.jf.intel.com with ESMTP; 24 Jun 2020 06:14:55 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Jun 2020 06:14:54 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 24 Jun 2020 06:14:54 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 24 Jun 2020 06:14:54 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Jun 2020 06:14:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mfurP9SlLSAzP0ZBDn7Sd3BYTEGfST7OEVUrjAUmGMfAxJo5VpC/6iqXN9edzTT8UzMesvT2FpPAaKoM1blICBFWzl2/RZkKIre3yj8NXrzbI9pbxnf6a9CcsvFUa2C1vIxngKbxWktwj91LnHCWoq3LDRwDgL4eJRhdbZxoPnAfm/5L4k2oip95n9l+eWTGYCWov2tR2kjJHThzTFaw8SKIFsFJcrwvp5N/FMyFoFeyquklmivF8tYCqcC/CrWF8zEdw+4XmhJCkN4MhlIm7qoig0VUesPldqxlGsmSi/T+9GswUhHAN9wGbWoVPmw26DLGIFUu8JVln9IMKIZCEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V7kS1JT1FnvcXmOBdYy2wzJCoLYXcKQBjLujqiJFbIc=; b=n9Z8Uy1mLs5GUuekWRIX6/sj4AWFzm6pwRGaBeoIKxAjiDup+VQvIJUazKmdaAOX68swhoBoC95i0LYzmdALF6a90fw5XQZjbA9boq9Ey454GVSB4RcIgCvIAy+5M+RyuWe+xCzISHtpVxUxkiQqSsDGfOqF1yaosOH+1nzF9NyX+2d71T0SwwQkL/BtIfH84vW0XxjI/6ItdgIbMya7XynsQX8tfTPRkEm+YHGfIoxEOUtBo5iyng6J2JU29vgIzqo0OTuVEBElTt/GGjixZ8Rsq1ZDC55dfp1Pu/mwMqE49DEAL08rIPKjGAdMfyI2sHPf/Ek3Og0hFOMSqymFNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V7kS1JT1FnvcXmOBdYy2wzJCoLYXcKQBjLujqiJFbIc=; b=P2ktdcLxcI/ihWJXMoamZN4HWTJo5l6jO2worzQmnojwMKDgh2OJ01cQeb0etKtBqWEbCeC4H49dbpDRIe6UwEpoowkAGCmwACP/JgraL+/OClPyyAu2Pbae0VC6GfBO1HQg0rzOibd8hwBAer3cDq5iCQBmoTF09g1iztTym/0= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3669.namprd11.prod.outlook.com (2603:10b6:a03:f7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Wed, 24 Jun 2020 13:14:50 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f160:29ab:b8f9:4189]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f160:29ab:b8f9:4189%6]) with mapi id 15.20.3109.027; Wed, 24 Jun 2020 13:14:50 +0000 From: "Ananyev, Konstantin" To: "Medvedkin, Vladimir" , "dev@dpdk.org" CC: "Richardson, Bruce" Thread-Topic: [PATCH v3 1/8] eal: introduce zmm type for AVX 512-bit Thread-Index: AQHWLdby4UgYjSK1KESpQ4QbuCm1Iajn9udg Date: Wed, 24 Jun 2020 13:14:49 +0000 Message-ID: References: <895e07b9a83234251f3a6b6a43dc360ee9b7edc6.1589890262.git.vladimir.medvedkin@intel.com> In-Reply-To: <895e07b9a83234251f3a6b6a43dc360ee9b7edc6.1589890262.git.vladimir.medvedkin@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.184] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 17ed8991-9fc3-46b0-3eed-08d81840933e x-ms-traffictypediagnostic: BYAPR11MB3669: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:361; x-forefront-prvs: 0444EB1997 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: x84Csr/CFyZzEqDeNnHPLLOzH4z/vWiiO+WacCP4TuxXAi0yybIxMh0Y7h2b0a6o1Zx6qzTCLeO1mwc/3npntgQEXHCGbkFRsDSWcp6aLjiFrTp6CLTsMzOjerfgFIsj68ELHZOpW4wlqVtoJQJEXm1EHN/mrruD30Lba2CdoYjcPBXw3URfCEm5kSPzqqAjHCZlmnNID7NjNh/lSj5HkVTunKkKtAlwfAD6lEJwc7NHp/JVm8F/lFa4pR8BV8w4LyARS+Dh27cYqEcdBvGIKAOu2KzvUr8eePdY6HRL6tcKk0J0gwLFPGDzqpoo3iU2neRNvvOjXZxzaLR25pFyZQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(26005)(6506007)(186003)(76116006)(52536014)(66946007)(7696005)(8676002)(33656002)(110136005)(66556008)(64756008)(66476007)(66446008)(8936002)(107886003)(55016002)(9686003)(316002)(4326008)(71200400001)(478600001)(5660300002)(2906002)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: BHOfHDrKTcN18QS3dS1MVB7zjTMpbEdX0FBYGluoa8Abs8j+0u/irmkgwj9u1s9UWAahxAmKw7drBCO7OZdUSFNkLSBLh2Xfs5HGjIx531QyxhWUHV9jGqENU989+WU4wd/vlCimR+AiNUBk1mrNb0630IHNY9dhd+mj7cJdOIxom1E4Nc0N1ZPXdKuvNfqnYDgaeZbF478HANicByksSIIQDYabgcsEZ+sWWbxBIgn85zB+PNBjZ3VXtZWNfNaTmgf1XFoRnqfiz4G2BY1zEnSFwowC1FZnhj4tsguK99BXigojivkDUtmgaeiSu2GyUwfzgRUjMVM2AcBJD6KjIu0CsJ5gDX9oSIYFNoFCcaPjGIZHMEzJtRSb4ZMEgP0XS6W/I5/v4Xlcioct4sGU7YveYhfvcbEPzdD808p1FEylOo/0RvqAbT+47XHl6ZE+10GiwpZjDYeOkTq5L6X2cTcrudf9EkYlOQ3HCLTg16+nWJ05J2KpN5NC5JNzkGAX Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17ed8991-9fc3-46b0-3eed-08d81840933e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2020 13:14:49.8749 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yqxEHXGaz3AVH4cjwgEekKY9IVhnsbsbJt37mVj/NYyO0Mx8bNPqQjQXUorCHBP3PVs3iphZE2ok198pHgCva0pqgp8ZfWt1iLmoXGBtCs4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3669 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 1/8] eal: introduce zmm type for AVX 512-bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" >=20 > New data type to manipulate 512 bit AVX values. >=20 > Signed-off-by: Vladimir Medvedkin > --- > lib/librte_eal/x86/include/rte_vect.h | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) >=20 > diff --git a/lib/librte_eal/x86/include/rte_vect.h b/lib/librte_eal/x86/i= nclude/rte_vect.h > index df5a607..ffe4f7d 100644 > --- a/lib/librte_eal/x86/include/rte_vect.h > +++ b/lib/librte_eal/x86/include/rte_vect.h > @@ -90,6 +90,26 @@ __extension__ ({ \ > }) > #endif /* (defined(__ICC) && __ICC < 1210) */ >=20 > +#ifdef __AVX512F__ > + > +typedef __m512i __x86_zmm_t; > + > +#define ZMM_SIZE (sizeof(__x86_zmm_t)) > +#define ZMM_MASK (ZMM_SIZE - 1) > + > +typedef union __rte_x86_zmm { > + __x86_zmm_t z; > + ymm_t y[ZMM_SIZE / sizeof(ymm_t)]; > + xmm_t x[ZMM_SIZE / sizeof(xmm_t)]; > + uint8_t u8[ZMM_SIZE / sizeof(uint8_t)]; > + uint16_t u16[ZMM_SIZE / sizeof(uint16_t)]; > + uint32_t u32[ZMM_SIZE / sizeof(uint32_t)]; > + uint64_t u64[ZMM_SIZE / sizeof(uint64_t)]; > + double pd[ZMM_SIZE / sizeof(double)]; > +} __attribute__((__aligned__(ZMM_SIZE))) __rte_x86_zmm_t; > + > +#endif /* __AVX512F__ */ > + > #ifdef __cplusplus > } > #endif > -- Acked-by: Konstantin Ananyev > 2.7.4