Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEaTl-008P6w-JZ for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 20:42:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tEaTk-00CDI3-A7 for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 20:42:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tEaTk-00CDFJ-0O for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 20:42:12 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEaTh-003L3U-S8 for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 20:42:11 +0000 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-4609c9b39d0so13689441cf.1 for ; Fri, 22 Nov 2024 12:42:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732308128; x=1732912928; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ddtlco340RlSf9d7bA/07QEuyD1fIoh5axvr2a9J/qo=; b=DH0L5XDfJItEY3S/GKE6UUNh4XzoAwIsy7Xui1ZyVNdL2WgAH0oBMZxrEBjWPAqTEW UYG86pvGHP2wNAKJ94fyXLjvK/WN772n3M4PRLVD1/K1vkl8dZ1+hGcivD02SOfaW7DC y1MwcgxfEtmStj4fjg3cXs57BGAS10ySHaFM5b7AlAcYvl+7cA0RHtled/JETHxk05/6 LR0cbxJ0iCdxEyE8oevORO+INfp1aRsYx7U9L9sjBSHccOCxAqcLA+KgRtqDPhbNAz2b bF8OqOeQTmk0IRtU+cRJzP2V7Ymjxr0lAUSXacAEnlTPBLeI/66SN7HK/fAsTw01eyHZ 2lqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732308128; x=1732912928; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ddtlco340RlSf9d7bA/07QEuyD1fIoh5axvr2a9J/qo=; b=Xpw2eaEVnYOVAEFDi3A6UVZHA2kEloYnksq3s/Y2/EA40Zt/09h/aaRY6TrNLjZpVo TzRlw9XQ/DRo2Lu5mIrJh2otuwUjTXIzjM9l+6XqxpTI3KyHeD9TAAiWQ9N0kPI2SF+Y iPogNVgF9cbhb9qXwOOYwZRQ2LdBvCd0xP53Prr0e29d2YafeEiNRNj9OBPIX4nW0vgP cqPqm0NLcF2CZk2yQ73WmDCO4z/1oRrY4cQGyEe2KnqPZAitap9sXGSRA7KwttskpvGx Mz9sB8zxaaW6ePb3CcQ2Nyyuba02M+Qg6x7uiTQcT8AGEndpScPx3axQtr93xvI1bKIc E4QA== X-Gm-Message-State: AOJu0YwciRJkeDH+PhM13/jQai3vWghoyoTsjHjrXZagZplw9pbvHu8l 48rP918Q+bDlzbdgTpven9D2r+0FmNnN1rwWgQ363xeopfT2tRAJ X-Gm-Gg: ASbGncv6AJRg19hmSbF4UQm7tSPuySME5z66TsTyyVdT3EEyXUQhy5VmRwLuA6TKlw6 9J7Kz75X/XLXT1cEUOsRv7g2NA0EcGvD0VDo0a+Iixlp7kqDUeoSZcfTi+o4ZJXhbbYu/zE5WI3 O4ncRqMgW4bMvXechxSuadqUymtz5kYqAzDACphOn5HjWAAEPxbloXFrM6nlI+ilE1wGyhs657v fWErKuIBM65met5snKcj7I2xMZhlsp4GdRhkee6wO9bi3aXrxC/n5b2V6TwA1uc0kDqASzYWsXI eSc1s37c/UpTGFeTuuvuXrohZuh5jtA/A7ZBgJd/ X-Google-Smtp-Source: AGHT+IH/NS1sphaDqNVHYz124PupwZkk1XpswnJZaPY4SG0QNYnW47YJkDq0obe16TXwczk3XXcb7A== X-Received: by 2002:ac8:5747:0:b0:463:5eb4:6f with SMTP id d75a77b69052e-4653d63570fmr59711861cf.47.1732308127803; Fri, 22 Nov 2024 12:42:07 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4653c0e1446sm16171011cf.0.2024.11.22.12.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 12:42:06 -0800 (PST) Date: Fri, 22 Nov 2024 14:42:04 -0600 From: Nathan Bossart To: "Devulapalli, Raghuveer" Cc: "pgsql-hackers@lists.postgresql.org" , "Shankaran, Akash" Subject: Re: Use __attribute__((target(sse4.2))) for SSE42 CRC32C Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 21, 2024 at 11:07:59PM +0000, Devulapalli, Raghuveer wrote: > Thanks for the review! We can actually leverage meson's built in option > to check for a macro: cc.get_define('__SSE4_2__') != ''. This should keep > the logic consistent across configure and meson. I think we should still use the test program even when __SSE4_2__ is defined, but we can use that macro to determine whether to use a runtime check. I think that would keep autoconf and meson consistent. -- nathan