From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103527 invoked by alias); 5 Sep 2019 07:19:34 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 103458 invoked by uid 48); 5 Sep 2019 07:19:30 -0000 From: "marxin.liska at gmail dot com" To: dwz@sourceware.org Subject: [Bug default/24965] [dwz] Faster hashing using native insns Date: Tue, 01 Jan 2019 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marxin.liska at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q3/txt/msg00100.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24965 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin.liska at gmail dot = com --- Comment #2 from Martin Li=C5=A1ka --- I do welcome the attempt to adapt the crc32 instructions. If I see correctl= y, the instructions are available on x86_64 since SSE 4.2. Which should be available for the vast majority of CPUs. Note that one can use directly i386 builtins like: static inline uint64_t _mm_crc32_u64(uint64_t crc, uint64_t value) { return __builtin_ia32_crc32qi (crc, value); } plus you'll need to use -msse42, or -mcrc32. So I would recommend to use a start detection of the ISA and then use the instruction. --=20 You are receiving this mail because: You are on the CC list for the bug.