aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-11-07 15:27:32 -0600
committerNathan Bossart <nathan@postgresql.org>2024-11-07 15:27:32 -0600
commit41b98ddb77bf49433f174f03383533dd09bdefec (patch)
treecc2151f6d5e4f1c7cec2efcf1a461f770a5cd2da /src
parentf78667bd910ed5af90d927bbef30b181bc798ef7 (diff)
downloadpostgresql-41b98ddb77bf49433f174f03383533dd09bdefec.tar.gz
postgresql-41b98ddb77bf49433f174f03383533dd09bdefec.zip
Fix __attribute__((target(...))) usage.
The commonly supported way to specify multiple target options is to surround the entire list with quotes and to use a comma (with no extra spaces) as the delimiter. Oversight in commit f78667bd91. Discussion: https://postgr.es/m/Zy0jya8nF8CPpv3B%40nathan
Diffstat (limited to 'src')
-rw-r--r--src/port/pg_popcount_avx512.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/pg_popcount_avx512.c b/src/port/pg_popcount_avx512.c
index b598e865549..1ab2847bf2d 100644
--- a/src/port/pg_popcount_avx512.c
+++ b/src/port/pg_popcount_avx512.c
@@ -106,7 +106,7 @@ pg_popcount_avx512_available(void)
* pg_popcount_avx512
* Returns the number of 1-bits in buf
*/
-pg_attribute_target("avx512vpopcntdq", "avx512bw")
+pg_attribute_target("avx512vpopcntdq,avx512bw")
uint64
pg_popcount_avx512(const char *buf, int bytes)
{
@@ -162,7 +162,7 @@ pg_popcount_avx512(const char *buf, int bytes)
* pg_popcount_masked_avx512
* Returns the number of 1-bits in buf after applying the mask to each byte
*/
-pg_attribute_target("avx512vpopcntdq", "avx512bw")
+pg_attribute_target("avx512vpopcntdq,avx512bw")
uint64
pg_popcount_masked_avx512(const char *buf, int bytes, bits8 mask)
{