diff options
| author | John Naylor <john.naylor@postgresql.org> | 2022-08-20 21:14:01 -0700 |
|---|---|---|
| committer | John Naylor <john.naylor@postgresql.org> | 2022-08-26 14:03:39 +0700 |
| commit | e813e0e16852c080259cd0813e1a82ecb2625aea (patch) | |
| tree | a3c20ae4fbf3eeac56ff1b66e656a25e142ed547 /src/test/modules/test_lfind/sql | |
| parent | bcc8b14ef630b2ad9aae7813981fb248fbff9ed8 (diff) | |
Add optimized functions for linear search within byte arrays
In similar vein to b6ef167564, add pg_lfind8() and pg_lfind8_le()
to search for bytes equal or less-than-or-equal to a given byte,
respectively. To abstract away platform details, add helper functions
and typedefs to simd.h.
John Naylor and Nathan Bossart, per suggestion from Andres Freund
Discussion: https://www.postgresql.org/message-id/CAFBsxsGzaaGLF%3DNuq61iRXTyspbO9rOjhSqFN%3DV6ozzmta5mXg%40mail.gmail.com
Diffstat (limited to 'src/test/modules/test_lfind/sql')
| -rw-r--r-- | src/test/modules/test_lfind/sql/test_lfind.sql | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/modules/test_lfind/sql/test_lfind.sql b/src/test/modules/test_lfind/sql/test_lfind.sql index 899f1dd49bf..766c640831f 100644 --- a/src/test/modules/test_lfind/sql/test_lfind.sql +++ b/src/test/modules/test_lfind/sql/test_lfind.sql @@ -5,4 +5,6 @@ CREATE EXTENSION test_lfind; -- the operations complete without crashing or hanging and that none of their -- internal sanity tests fail. -- -SELECT test_lfind(); +SELECT test_lfind8(); +SELECT test_lfind8_le(); +SELECT test_lfind32(); |
