From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0093.outbound.protection.outlook.com [157.56.110.93]) by dpdk.org (Postfix) with ESMTP id D52BB5A71 for ; Fri, 6 Nov 2015 10:41:39 +0100 (CET) Received: from BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) by BLUPR0701MB1587.namprd07.prod.outlook.com (10.163.84.149) with Microsoft SMTP Server (TLS) id 15.1.312.18; Fri, 6 Nov 2015 09:41:38 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) with Microsoft SMTP Server (TLS) id 15.1.318.15; Fri, 6 Nov 2015 09:41:35 +0000 From: Jerin Jacob To: Date: Fri, 6 Nov 2015 15:10:25 +0530 Message-ID: <1446802833-22265-7-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1446802833-22265-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1446802833-22265-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0066.INDPRD01.PROD.OUTLOOK.COM (25.164.116.166) To BLUPR0701MB1969.namprd07.prod.outlook.com (25.163.121.20) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 2:bYb/1MEhZq46sowtoNdm8UBAqqgvvlacDS5nio5OMIuZlNZVUlHk4VhdqBKEYpFnI5Oeh7SD08sUpBGtW5Bzfol0A7wL6m3mzi7ISIJHiRiFJvwaPqLVBCNgigLPzQVwhIpzmyRTYSVyD0TbiZY1gFWnAb66OfuJ7fBKmO0zElk=; 3:Z8ys+TfFV08q5G5AvLdp/9d4VbOsUul51NJeU8fbxCefi7Jxt8CN7Y5T1CsF98lMH/JDnaEukUMM0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M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1969; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 4:WOADMreR7vV+7SupZC3SaszDzaoRzPKa/yLpO8dB/qJEMwplK9umKs6eDxXs7bsmqxpTc/+R/QRce9twCn7ro+o8m9MxmHGWYcbuDxtEgGqOTVJ7ehWu3V3R+KTB7QEeSQ8DXkeMqdESnZbBEwU+pggWVTF7Ur8to5InB5fSQneizWW8mhsRzBjQ/PtM/bdxGyk6KllOJsLi1VdlzgkOwIBSTJUrXgaXn95A/EkgBLqKzdnaJ5KRo50VwlkMal+D96/QIdys0RHOhEHachRmhXJScI9/VgaCkW3paH/S0iJgJuKiRsvJqiK9/N0xYHWXv6fhSNFotQf7VdXDLRvQqT4E8aE/TPQmn64rmY8KJUmaxdoHvHH6X+V/oUeWV/Wo X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(50226001)(122386002)(48376002)(50986999)(50466002)(106356001)(229853001)(110136002)(19580405001)(40100003)(76176999)(87976001)(105586002)(5004730100002)(77096005)(19580395003)(2351001)(5003940100001)(92566002)(107886002)(189998001)(5007970100001)(33646002)(5001960100002)(66066001)(5009440100003)(42186005)(2950100001)(4001430100002)(97736004)(101416001)(69596002)(47776003)(36756003)(5008740100001)(53416004)(81156007)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1969; H:jerin.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUP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p8aYxBX1A?= =?us-ascii?Q?TI6GlxLs00e5poslBvYDsO2VsR7VFBMwj/8dDM+CshsT9hslPq/5SQonVs6e?= =?us-ascii?Q?WUOakE5jLNyPefAZt9a0N9JZo7tEQ9vrdJ4Do5sKPpPa2eoCQYjyfrnt35Jq?= =?us-ascii?Q?sAG71D9wXXjYblKgETyoXG/KwOflmgw9LkRXuS/C8F6RkLQgz+MiaLAasz1C?= =?us-ascii?Q?fkWsqqTQarxD24y4EWePWw4pgPNFShOLxnDPNweH5UHPp+ZEik6iRNZ5teKP?= =?us-ascii?Q?py3mm6JSPXJgwqVwBTKTgiMXPDKzmTtXO?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 5:WsCCz6WbSWs2cyOSguAKgvFRaE0XWFIh2ooFI5zN3h2/VZBtOn/adEhXJrB5mTBBci/MMRnq7sLh3rPF+Ul/PI1lbLBP6I2TkPozsGeXOHiw0/cTS3enhoRswdEwOM4cns4oB+fv1E1ZPElHi5S+4g==; 24:w1ak1avjvNVTHizy7IlOGz/6xwzuPxovvAxQ7BM9aoAWoAVzUg+ZbeQGP+Op2jFtyYEQHJ1m/KIfds6Q2ki4HoA70csJooh3ZPCbkbh8stw=; 20:gy7MXzEWlr3ShczYI7E1vQ8jQEWozFvVwqzaBX+y0x4lAjLaNitfQnBxjVeKfFtg7h8XSCMgOkfXLzdd8QjjQQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2015 09:41:35.4914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1969 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1587; 2:ueVm+H7kyAjuB3H5YjpUD7eHqbUabtZJtV2Om3V16KY5WUQ4zDUZTqolFgtrVxjg4mDvArBun8h71m3J59Y419uCU7x4J4wrHhBNlVG4L1GgHyvWTO7NjK9FTptcZBGz1apCEz2n5lOxWOCJEaQaV7pW9Z9cfaBICytsspvLhhg=; 23:3EkthE7ne608PYJBqlO0hjqgLctRenawtXtle3xvfzFsrVWtNaG2lm6tn7v6XJl1ZMOfIwSzi126ysm5jiajLy3+6HpxegPrCiW+oFaVxNwjDavIA4BBHT+oE+mL6ZBCS3w6SPeuHZMntrpMT+vIdO6FXEG/UTj+FFMPDGZw9mdonDRv/JUc8Dol4wmMUHkH X-OriginatorOrg: caviumnetworks.com Subject: [dpdk-dev] [PATCH v3 06/14] eal: arm: ret_vector.h improvements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2015 09:41:40 -0000 added the definition of rte_xmm and xmm_t for acl noen implementation. removed the emulated _mm_* functions Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_vect.h | 54 +++++++---------------- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_vect.h b/lib/librte_eal/common/include/arch/arm/rte_vect.h index 7d5de97..21cdb4d 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_vect.h +++ b/lib/librte_eal/common/include/arch/arm/rte_vect.h @@ -1,7 +1,7 @@ /*- * BSD LICENSE * - * Copyright(c) 2015 RehiveTech. All rights reserved. + * Copyright(c) 2015 Cavium Networks. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -13,7 +13,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * * Neither the name of RehiveTech nor the names of its + * * Neither the name of Cavium Networks nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -33,49 +33,25 @@ #ifndef _RTE_VECT_ARM_H_ #define _RTE_VECT_ARM_H_ +#include "arm_neon.h" + #ifdef __cplusplus extern "C" { #endif -#define XMM_SIZE 16 -#define XMM_MASK (XMM_MASK - 1) - -typedef struct { - union uint128 { - uint8_t uint8[16]; - uint32_t uint32[4]; - } val; -} __m128i; - -static inline __m128i -_mm_set_epi32(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3) -{ - __m128i res; - - res.val.uint32[0] = v0; - res.val.uint32[1] = v1; - res.val.uint32[2] = v2; - res.val.uint32[3] = v3; - return res; -} +typedef int32x4_t xmm_t; -static inline __m128i -_mm_loadu_si128(__m128i *v) -{ - __m128i res; +#define XMM_SIZE (sizeof(xmm_t)) +#define XMM_MASK (XMM_SIZE - 1) - res = *v; - return res; -} - -static inline __m128i -_mm_load_si128(__m128i *v) -{ - __m128i res; - - res = *v; - return res; -} +typedef union rte_xmm { + xmm_t x; + uint8_t u8[XMM_SIZE / sizeof(uint8_t)]; + uint16_t u16[XMM_SIZE / sizeof(uint16_t)]; + uint32_t u32[XMM_SIZE / sizeof(uint32_t)]; + uint64_t u64[XMM_SIZE / sizeof(uint64_t)]; + double pd[XMM_SIZE / sizeof(double)]; +} __attribute__((aligned(16))) rte_xmm_t; #ifdef __cplusplus } -- 1.9.3