summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Naylor2022-08-30 02:44:44 +0000
committerJohn Naylor2022-08-30 02:50:00 +0000
commit865424627db638acdbe4b5d0384d0b9cd34838a5 (patch)
tree20425d2bc02f7c8d57dcd1a4a78b6bd0f5683cc2
parent9887dd38f9660721e4ef63333ab81a60b1b3da92 (diff)
Further code review of port/simd.h
Add missing declaration per existing style, and fix a couple typos. Nathan Bossart and Julien Rouhaud Discussion: https://www.postgresql.org/message-id/20220829171712.GA509233%40nathanxps13 Discussion: https://www.postgresql.org/message-id/20220830022636.qrcbcecmhztbxrwa%40jrouhaud
-rw-r--r--src/include/port/simd.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/port/simd.h b/src/include/port/simd.h
index 0ff1549083a..74da6e51e03 100644
--- a/src/include/port/simd.h
+++ b/src/include/port/simd.h
@@ -77,6 +77,9 @@ static inline bool vector8_has(const Vector8 v, const uint8 c);
static inline bool vector8_has_zero(const Vector8 v);
static inline bool vector8_has_le(const Vector8 v, const uint8 c);
static inline bool vector8_is_highbit_set(const Vector8 v);
+#ifndef USE_NO_SIMD
+static inline bool vector32_is_highbit_set(const Vector32 v);
+#endif
/* arithmetic operations */
static inline Vector8 vector8_or(const Vector8 v1, const Vector8 v2);
@@ -88,7 +91,7 @@ static inline Vector8 vector8_ssub(const Vector8 v1, const Vector8 v2);
/*
* comparisons between vectors
*
- * Note: These return a vector rather than booloan, which is why we don't
+ * Note: These return a vector rather than boolean, which is why we don't
* have non-SIMD implementations.
*/
#ifndef USE_NO_SIMD
@@ -275,7 +278,7 @@ vector8_is_highbit_set(const Vector8 v)
}
/*
- * Exactly like vector32_is_highbit_set except for the input type, so it
+ * Exactly like vector8_is_highbit_set except for the input type, so it
* looks at each byte separately.
*
* XXX x86 uses the same underlying type for 8-bit, 16-bit, and 32-bit