pgvector.git / summary / log / commit / refs
commit 1102b6269a74f6c576065fffe7e8da558f8a49e1
Author: Andreas Krebbel <krebbel@linux.ibm.com>
Commit: GitHub <noreply@github.com>
Date: Tue Aug 04 12:39:24 2026 +0000
Add -ffp-contract=fast to PG_CFLAGS to enable multiply and add (#1008)
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 7e2c8c38..fd569923 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ endif
# For auto-vectorization:
# - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html
# - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html
-PG_CFLAGS += $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math
+PG_CFLAGS += $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -ffp-contract=fast
# Debug GCC auto-vectorization
# PG_CFLAGS += -fopt-info-vec
[parent: 3b72e5b524d8]