Fix broken cast on MSVC
authorJohn Naylor <[email protected]>
Mon, 29 Aug 2022 10:25:59 +0000 (17:25 +0700)
committerJohn Naylor <[email protected]>
Mon, 29 Aug 2022 10:44:35 +0000 (17:44 +0700)
commitc6a43c25a8ba1a825588f7af25a7173f2e66ce8d
tree38f905124f4ad8aed3fabe82457868a6d55af66a
parent82739d4a80f2eeb2f96b56477bb04e463ea24800
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
src/include/port/pg_lfind.h
src/include/port/simd.h