]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Abstract some more architecture-specific details away from SIMD functionality
authorJohn Naylor <john.naylor@postgresql.org>
Mon, 29 Aug 2022 06:40:53 +0000 (13:40 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Mon, 29 Aug 2022 07:20:09 +0000 (14:20 +0700)
commitf8f19f70868c6351b80f02a47fa65d56b728a5a2
treea18a0af6460e1ae3db7152687159c0a22b3091e5
parentc6e0fe1f2a08505544c410f613839664eea9eb21
Abstract some more architecture-specific details away from SIMD functionality

Add a typedef to represent vectors containing four 32-bit integers,
and add functions operating on them. Also separate out saturating
subtraction into its own function. The motivation for this is to
prepare for a future commit to add ARM NEON support.

Nathan Bossart

Reviewed by John Naylor and Tom Lane
Discussion: https://www.postgresql.org/message-id/flat/CAFBsxsEyR9JkfbPcDXBRYEfdfC__OkwVGdwEAgY4Rv0cvw35EA%40mail.gmail.com#aba7a64b11503494ffd8dd27067626a9
src/include/port/pg_lfind.h
src/include/port/simd.h