Re: a couple of small patches for simd.h
John Naylor <johncnaylorls@gmail.com>
From: John Naylor <johncnaylorls@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-09-24T01:04:59Z
Lists: pgsql-hackers
On Tue, Sep 23, 2025 at 4:44 AM Nathan Bossart <nathandbossart@gmail.com> wrote: > > 0001 essentially reverts commit c6a43c2, and instead fixes the problem > (MSVC dislikes casts to the same type) by omitting the cast in the > problematic line in pg_lfind32(). While working on optimizing hex_encode() > and hex_decode() [0], I noticed that implicit conversions sufficed. I don't remember why that cast was there, but I suggest testing on gcc / aarch64 if you haven't already. As for 0002, +1 for more succinct expressions when the hardware supports it. -- John Naylor Amazon Web Services
Commits
-
Optimize vector8_has_le() on AArch64.
- f8f4afe751fc 19 (unreleased) landed
-
Fix broken cast on MSVC
- c6a43c25a8ba 16.0 cited