From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgw.gov.kz (mgw.gov.kz [89.218.88.242]) by dpdk.org (Postfix) with ESMTP id 45765376C for ; Mon, 2 Feb 2015 06:35:28 +0100 (CET) Received: from mgw.gov.kz (mx.ctsat.kz [178.89.4.95]) by mgw.gov.kz with ESMTP id t125ZRTp017117-t125ZRTq017117; Mon, 2 Feb 2015 11:35:27 +0600 Received: from EXCASHUB2.rgp.local (192.168.40.53) by EdgeForefront.rgp.local (192.168.40.59) with Microsoft SMTP Server (TLS) id 14.2.247.3; Mon, 2 Feb 2015 11:34:12 +0600 Received: from [192.168.35.15] (192.168.35.15) by excashub2.rgp.local (192.168.40.48) with Microsoft SMTP Server (TLS) id 14.2.247.3; Mon, 2 Feb 2015 11:35:20 +0600 Message-ID: <54CF0C49.5000002@sts.kz> Date: Mon, 2 Feb 2015 11:34:01 +0600 From: Yerden Zhumabekov User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Liang, Cunming" , References: <1409724351-23786-1-git-send-email-e_zhumabekov@sts.kz> <3fdc339aa3f0206ae2200937b9791af69e83409e.1417092208.git.e_zhumabekov@sts.kz> <54CF0805.8040103@intel.com> In-Reply-To: <54CF0805.8040103@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.35.15] X-FEAS-SYSTEM-WL: e_zhumabekov@sts.kz Subject: Re: [dpdk-dev] [PATCH v6 2/7] hash: add assembly implementation of CRC32 intrinsics 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: Mon, 02 Feb 2015 05:35:28 -0000 02.02.2015 11:15, Liang, Cunming пишет: > >> +static inline uint32_t >> +crc32c_sse42_u64(uint64_t data, uint64_t init_val) >> +{ >> + __asm__ volatile( >> + "crc32q %[data], %[init_val];" >> + : [init_val] "+r" (init_val) >> + : [data] "rm" (data)); >> + return init_val; >> +} > [LCM] I'm curious about the benefit of replacing CRC32 intrinsic > "_mm_crc32_u32/64". These intrinsics are not available on a platform which has no SSE4.2 support so the build would fail. See previous suggestion from Neil: http://dpdk.org/ml/archives/dev/2014-November/008353.html -- Sincerely, Yerden Zhumabekov State Technical Service Astana, KZ