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

Commitde7c6fe

Browse files
committed
Fix signedness error in9f225e9 for gcc
The first argument of vshrq_n_s8 needs to be a signed vector type,but it was passed unsigned. Clang is more lax with conversion, butgcc needs a cast.Fix by me, tested by Masahiko SawadaPer buildfarm members splitfin, batta, widowbird, snakefly, parula,massasaugaDiscussion:https://postgr.es/m/20240306074106.mg6w4koohdlworbs%40alap3.anarazel.de
1 parenteae7be6 commitde7c6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/port/simd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ vector8_highbit_mask(const Vector8 v)
323323
1 <<4,1 <<5,1 <<6,1 <<7,
324324
};
325325

326-
uint8x16_tmasked=vandq_u8(vld1q_u8(mask), (uint8x16_t)vshrq_n_s8(v,7));
326+
uint8x16_tmasked=vandq_u8(vld1q_u8(mask), (uint8x16_t)vshrq_n_s8((int8x16_t)v,7));
327327
uint8x16_tmaskedhi=vextq_u8(masked,masked,8);
328328

329329
return (uint32)vaddvq_u16((uint16x8_t)vzip1q_u8(masked,maskedhi));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp