Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8654246

Browse files
committed
Further code review of port/simd.h
Add missing declaration per existing style, and fix a couple typos.Nathan Bossart and Julien RouhaudDiscussion:https://www.postgresql.org/message-id/20220829171712.GA509233%40nathanxps13Discussion:https://www.postgresql.org/message-id/20220830022636.qrcbcecmhztbxrwa%40jrouhaud
1 parent9887dd3 commit8654246

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/include/port/simd.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ static inline bool vector8_has(const Vector8 v, const uint8 c);
7777
staticinlineboolvector8_has_zero(constVector8v);
7878
staticinlineboolvector8_has_le(constVector8v,constuint8c);
7979
staticinlineboolvector8_is_highbit_set(constVector8v);
80+
#ifndefUSE_NO_SIMD
81+
staticinlineboolvector32_is_highbit_set(constVector32v);
82+
#endif
8083

8184
/* arithmetic operations */
8285
staticinlineVector8vector8_or(constVector8v1,constVector8v2);
@@ -88,7 +91,7 @@ static inline Vector8 vector8_ssub(const Vector8 v1, const Vector8 v2);
8891
/*
8992
* comparisons between vectors
9093
*
91-
* Note: These return a vector rather thanbooloan, which is why we don't
94+
* Note: These return a vector rather thanboolean, which is why we don't
9295
* have non-SIMD implementations.
9396
*/
9497
#ifndefUSE_NO_SIMD
@@ -275,7 +278,7 @@ vector8_is_highbit_set(const Vector8 v)
275278
}
276279

277280
/*
278-
* Exactly likevector32_is_highbit_set except for the input type, so it
281+
* Exactly likevector8_is_highbit_set except for the input type, so it
279282
* looks at each byte separately.
280283
*
281284
* XXX x86 uses the same underlying type for 8-bit, 16-bit, and 32-bit

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp