Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gu03J-0007Bo-Iz for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 19:18:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gu03I-0006ni-8g for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 19:18:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gu03H-0006j2-Sx for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 19:18:36 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gu03E-0007bn-VH for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 19:18:34 +0000 Received: by mail-qk1-x742.google.com with SMTP id x9so2107383qkf.0 for ; Wed, 13 Feb 2019 11:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=+FpEaglAruLGi18d9TVNN3yl2GvVFWkE5Ba3J+9llsc=; b=IldckZeD0KAuwzdiB8tWX0N55CWAEu+qX6wUkDenibau31zXu+A4+nrtrSdQHavqLE D5oe8iAsS+Scw0iNwP0/4qv5gDofJ3waEFbelFgxTsGB/0hAWtG+9SE5pPq2M3T9BziR hsfiATLgLXqtLhg0rD52Mp0ClEbgiXNwUUQUXJdHtQf1UUK+suyCuyds0UZUjvoysmFT hUE/6cYwtbi4o0OdHz+KhIM3LkcZ9vp75boCwc7Ax1eIA9+ei0xHy1dq4OUGN5IkbE2R GhL1zSHEqmnHN59I3vIIcwaHfcvTGKnea6lp/IBHlC7nkrmy1Nw++r4Do+kC9cbM8bNz mkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+FpEaglAruLGi18d9TVNN3yl2GvVFWkE5Ba3J+9llsc=; b=KzzDHMs+s+4X6ERW7P6IfnxzDEMzFilr5Sx9QV89MdyzqRfS58vdgFADD38UxlxrqM d/z9fdDMfKi4Zt9V1JdSRpSOA5zF/Q5ZvoUr91FNGqtdHm1y037RwkcJYXJOaJLtT6iz 7ULZDzfoZASgGRUH1I3B54Xd6kYnQvwVnRV3NZA/8pC85W0FN+s/dI/G71oSgwD7mNoR a90JR36fnWvqTRG9uNXBzO0spPVepKkD9pRY12q5pc0cjiN1RUL5Mun2pQNFKswx5ZMr oaGGuiJh1SWWUdblA/WSK88ITxW8HU4+1Wf7YqWzAAL1WTjEwRguBz0wdk5l8iBcE8gK ljZA== X-Gm-Message-State: AHQUAuY0zAarnVpTwXp3Mz/yac82Ez5t340jmmJleeFSINpIGLhYKqoT NgLg6E6EhCJhFLuJjzGnHbPQPw== X-Google-Smtp-Source: AHgI3IamuSbxcre13x0ZOP07jyaJtI4KwPL98DqfvqVcvgjUs4VfYE6OahWbMbZX9K9dJ4hVeAmDEw== X-Received: by 2002:a37:7883:: with SMTP id t125mr1599469qkc.201.1550085512013; Wed, 13 Feb 2019 11:18:32 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id p17sm80938qtk.39.2019.02.13.11.18.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Feb 2019 11:18:31 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4720A12395E; Wed, 13 Feb 2019 16:18:29 -0300 (-03) Date: Wed, 13 Feb 2019 16:18:29 -0300 From: Alvaro Herrera To: David Rowley Cc: PostgreSQL Hackers , Thomas Munro Subject: Re: Using POPCNT and other advanced bit manipulation instructions Message-ID: <20190213191829.GA19406@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-04, David Rowley wrote: > On Fri, 1 Feb 2019 at 11:45, Alvaro Herrera wrote: > > > > I only have cosmetic suggestions for this patch. For one thing, I think > > the .c file should be in src/port and its header should be in > > src/include/port/, right beside the likes of pg_bswap.h and pg_crc32c.h. > > I've moved the code into src/port and renamed the file to pg_bitutils.c I've pushed this now. Let's see what the buildfarm has to say about it. > I've compiled and run make check-world on Linux with GCC7.3 and > clang6.0. I've also tested on MSVC to ensure I didn't break windows. > It would be good to get a few more people to compile it and run the > tests. That's what the buildfarm is for ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services