Cast the parameter type of arm BLOCKCONV_LOAD (#14159)

When building with gcc in the Arm environment, a runtime error due to an
overflow occurred, so we fixed it.

closes #14159
This commit is contained in:
SakiTakamachi 2024-05-07 09:04:56 +09:00 committed by Saki Takamachi
parent da5b43f3a1
commit 85371ec49c
No known key found for this signature in database
GPG key ID: E4A36F6D37931A8B

View file

@ -122,7 +122,7 @@ static _locale_t current_locale = NULL;
#define BLOCKCONV_LOAD(input) \ #define BLOCKCONV_LOAD(input) \
int8x16_t blconv_operand = vld1q_s8((const int8_t*)(input)); \ int8x16_t blconv_operand = vld1q_s8((const int8_t*)(input)); \
uint8x16_t blconv_mask = vcltq_s8(vaddq_s8(blconv_operand, blconv_offset), blconv_threshold); uint8x16_t blconv_mask = vcltq_s8(vreinterpretq_s8_u8(vaddq_u8(vreinterpretq_u8_s8(blconv_operand), vreinterpretq_u8_s8(blconv_offset))), blconv_threshold);
#define BLOCKCONV_FOUND() vmaxvq_u8(blconv_mask) #define BLOCKCONV_FOUND() vmaxvq_u8(blconv_mask)