mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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:
committed by
Saki Takamachi
parent
da5b43f3a1
commit
85371ec49c
@@ -122,7 +122,7 @@ static _locale_t current_locale = NULL;
|
||||
|
||||
#define BLOCKCONV_LOAD(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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user