Re: add AVX2 support to simd.h - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: add AVX2 support to simd.h
Date
Msg-id 20240327213735.GA95234@nathanxps13
Whole thread Raw
In response to Re: add AVX2 support to simd.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: add AVX2 support to simd.h
List pgsql-hackers
On Wed, Mar 27, 2024 at 05:10:13PM -0400, Tom Lane wrote:
> Shouldn't "i" be declared uint32, since nelem is?

Yes, that's a mistake.

> BTW, I wonder why these functions don't declare their array
> arguments like "const uint32 *base".

They probably should.  I don't see any reason not to, and my compiler
doesn't complain, either.
 
> LGTM otherwise, and I like the fact that the #if structure
> gets a lot less messy.

Thanks for reviewing.  I've attached a v2 that I intend to commit when I
get a chance.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: incorrect results and different plan with 2 very similar queries
Next
From: Thomas Munro
Date:
Subject: Re: Streaming I/O, vectored I/O (WIP)