mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02: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:
parent
da5b43f3a1
commit
85371ec49c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue