We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dbdf86 commit af0c248Copy full SHA for af0c248
src/include/port/pg_crc32c.h
@@ -52,7 +52,13 @@ typedef uint32 pg_crc32c;
52
53
extern pg_crc32c pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len);
54
55
+/*
56
+ * We can only get here if the host compiler targets SSE 4.2, but on some
57
+ * systems gcc and clang don't have the same built-in targets, so we still
58
+ * must use a function attribute here to accommodate "--with-llvm" builds.
59
+ */
60
pg_attribute_no_sanitize_alignment()
61
+pg_attribute_target("sse4.2")
62
static inline
63
pg_crc32c
64
pg_comp_crc32c_dispatch(pg_crc32c crc, const void *data, size_t len)
0 commit comments