Rename pg_popcount_avx512.c to pg_popcount_x86.c.
authorNathan Bossart <nathan@postgresql.org>
Wed, 21 Jan 2026 20:21:00 +0000 (14:21 -0600)
committerNathan Bossart <nathan@postgresql.org>
Wed, 21 Jan 2026 20:21:00 +0000 (14:21 -0600)
This is preparatory work for a follow-up commit that will move the
rest of the x86-64-specific popcount code to this file.

Reviewed-by: John Naylor <johncnaylorls@gmail.com>
Discussion: https://postgr.es/m/aWf_InS1VrbeXAfP%40nathan

src/port/Makefile
src/port/meson.build
src/port/pg_popcount_x86.c [moved from src/port/pg_popcount_avx512.c with 98% similarity]

index 4274949dfa4c10fa472ded9567f8fd3b2bb4bda8..6e3b7d154ed60ccd9632b050e682f9c13c836e1a 100644 (file)
@@ -47,7 +47,7 @@ OBJS = \
    pg_localeconv_r.o \
    pg_numa.o \
    pg_popcount_aarch64.o \
-   pg_popcount_avx512.o \
+   pg_popcount_x86.o \
    pg_strong_random.o \
    pgcheckdir.o \
    pgmkdirp.o \
index 28655142ebe27e5009d842ebfd8b8348967b1ae4..d7d4e705b89c09422f6026911f41a57dabb484e4 100644 (file)
@@ -10,7 +10,7 @@ pgport_sources = [
   'pg_localeconv_r.c',
   'pg_numa.c',
   'pg_popcount_aarch64.c',
-  'pg_popcount_avx512.c',
+  'pg_popcount_x86.c',
   'pg_strong_random.c',
   'pgcheckdir.c',
   'pgmkdirp.c',
similarity index 98%
rename from src/port/pg_popcount_avx512.c
rename to src/port/pg_popcount_x86.c
index 407b610bacb6b383eba6ee5047a246ebd283a9a9..7435492f594298cd86d5c65993a5a75589db717a 100644 (file)
@@ -1,12 +1,12 @@
 /*-------------------------------------------------------------------------
  *
- * pg_popcount_avx512.c
- *   Holds the AVX-512 pg_popcount() implementation.
+ * pg_popcount_x86.c
+ *   Holds the x86-64 pg_popcount() implementations.
  *
  * Copyright (c) 2024-2026, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *   src/port/pg_popcount_avx512.c
+ *   src/port/pg_popcount_x86.c
  *
  *-------------------------------------------------------------------------
  */