From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v7 1/3] eal/x86: run-time dispatch over memcpy Date: Mon, 09 Oct 2017 19:47:04 +0200 Message-ID: <35071535.8NSjKInSoG@xps> References: <1507157911-8702-1-git-send-email-xiaoyun.li@intel.com> <1507206794-79941-1-git-send-email-xiaoyun.li@intel.com> <1507206794-79941-2-git-send-email-xiaoyun.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, konstantin.ananyev@intel.com, bruce.richardson@intel.com, wenzhuo.lu@intel.com, helin.zhang@intel.com To: Xiaoyun Li Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id ADA121B223 for ; Mon, 9 Oct 2017 19:47:05 +0200 (CEST) In-Reply-To: <1507206794-79941-2-git-send-email-xiaoyun.li@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 05/10/2017 14:33, Xiaoyun Li: > +/** > + * Macro for copying unaligned block from one location to another with constant load offset, > + * 47 bytes leftover maximum, > + * locations should not overlap. > + * Requirements: > + * - Store is aligned > + * - Load offset is , which must be immediate value within [1, 15] > + * - For , make sure bit backwards & <16 - offset> bit forwards are available for loading > + * - , , must be variables > + * - __m128i ~ must be pre-defined > + */ > +#define MOVEUNALIGNED_LEFT47_IMM(dst, src, len, Naive question: Is there a real benefit of using a macro compared to a static inline function optimized by a modern compiler? Anyway, if you are doing a new version, please reduce lines length and fix the indent from spaces to tabs. Thank you