pgsql: Fix broken cast on MSVC

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix broken cast on MSVC
Date: 2022-08-29 10:45:43
Message-ID: E1oScH1-000RbK-8z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix broken cast on MSVC

Per buildfarm animal drongo, casting a vector type to the same type
causes a compile error. We still need the cast on ARM64, so invent a
wrapper function that does the casting only where necessary.

Discussion: https://www.postgresql.org/message-id/CAFBsxsEouaTwbmpqV%2BEW2%3DwFbhw2vHRe26NQTRcd0%3DNaOFDy7A%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c6a43c25a8ba1a825588f7af25a7173f2e66ce8d

Modified Files
--------------
src/include/port/pg_lfind.h | 2 +-
src/include/port/simd.h | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2022-08-29 11:21:25 pgsql: Add missing padding from MemoryChunk struct
Previous Message John Naylor 2022-08-29 07:44:57 pgsql: Use ARM Advanced SIMD (NEON) intrinsics where available