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 3158E43D6D; Thu, 28 Mar 2024 17:16:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B968410E3; Thu, 28 Mar 2024 17:16:44 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id BDA92402D8 for ; Thu, 28 Mar 2024 17:16:42 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 1ADB520E6AF0; Thu, 28 Mar 2024 09:16:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1ADB520E6AF0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1711642602; bh=Zrh56qJELjdAST8+PwH/y6H8WQFkE3p4GwmZTisTes4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DA2+XkUm8CxpW1rYiNGP/7bvC3PTCLfCitNnF5jGfrt8zViS3JTmEugiLsPLEIssE JGXunCkAK+DD+Al2Gb4ibY7VF55sdoKpLY+D5qfH+63v4pu0PKUD2+27nIOVh/73Xn HmqVZToepaAtaQB9DZlLTj6xw5EcDfEPYJkNvxUQ= Date: Thu, 28 Mar 2024 09:16:42 -0700 From: Tyler Retzlaff To: Thomas Monjalon Cc: dev@dpdk.org, Bruce Richardson , Jasvinder Singh , Konstantin Ananyev , david.marchand@redhat.com Subject: Re: [PATCH] net: stop using mmx intrinsics Message-ID: <20240328161642.GA2014@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1710969121-18503-1-git-send-email-roretzla@linux.microsoft.com> <13164815.EVyyLHbfrO@thomas> <20240321172707.GA1605@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <5822839.1B3tZ46Xf9@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5822839.1B3tZ46Xf9@thomas> User-Agent: Mutt/1.5.21 (2010-09-15) 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 On Thu, Mar 21, 2024 at 07:01:17PM +0100, Thomas Monjalon wrote: > 21/03/2024 18:27, Tyler Retzlaff: > > On Thu, Mar 21, 2024 at 06:09:01PM +0100, Thomas Monjalon wrote: > > > 20/03/2024 22:12, Tyler Retzlaff: > > > > +#ifdef RTE_TOOLCHAIN_MSVC > > > > +#include > > > > +#else > > > > #include > > > > +#endif > > > > > > It is not the same include in MSVC? > > > > unfortunately intrin.h is vestigial in the monolithic approach. to use > > any intrinsic you're supposed to include only the one and only true > > header instead of vendor/arch feature specific headers. > > > > > Is it something we want to wrap in a DPDK header file? > > > > do you mean create a monolithic rte_intrinsic.h header that is > > essentially > > > > #ifdef MSVC > > #include > > #else > > #include > > #include > > #include > > ... > > #endif > > > > i assumed that doing something like this might be unpopular due to the > > unnecessary namespace pollution. > > We already have such a file. > It is rte_vect.h. > I suppose we should just make sure it is included consistently > instead of x86intrin.h or immintrin.h > > This command will show where changes are required: > git grep intrin.h thanks! i saw none of the problems i had before so this worked great. there is only one other include of intrin.h in eal now and it is not for vector intrinsics so it should be cleaner to just include rte_vect.h whenever SIMD / vector intrinsics are required for windows and !windows. > >