Skip to content

Commit ff4ef5b

Browse files
committed
cs
1 parent dfd6de0 commit ff4ef5b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/json/json_encoder.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ zend_always_inline int php_json_sse42_compute_escape_intersection_real(const __m
520520
#endif
521521

522522
#ifdef ZEND_INTRIN_SSE4_2_FUNC_PROTO
523-
static int php_json_sse42_compute_escape_intersection(const __m128i mask, const __m128i input) __attribute__((ifunc("resolve_json_escape_intersection")));
523+
static int php_json_sse42_compute_escape_intersection(const __m128i mask, const __m128i input) __attribute__((ifunc("php_json_resolve_escape_intersection")));
524524

525525
typedef int (*php_json_compute_escape_intersection_t)(const __m128i mask, const __m128i input);
526526

527527
ZEND_NO_SANITIZE_ADDRESS
528528
ZEND_ATTRIBUTE_UNUSED /* clang mistakenly warns about this */
529-
static php_json_compute_escape_intersection_t resolve_json_escape_intersection(void) { // TODO: rename
529+
static php_json_compute_escape_intersection_t php_json_resolve_escape_intersection(void) {
530530
if (zend_cpu_supports_sse42()) {
531531
return php_json_sse42_compute_escape_intersection_real;
532532
}
@@ -541,7 +541,9 @@ typedef enum php_json_simd_result {
541541
PHP_JSON_NON_ASCII,
542542
} php_json_simd_result;
543543

544-
static zend_always_inline php_json_simd_result php_json_process_simd_block(smart_str *buf, const __m128i sse_escape_mask, const char **s, size_t *pos, size_t *len, int options)
544+
static zend_always_inline php_json_simd_result php_json_process_simd_block(
545+
smart_str *buf, const __m128i sse_escape_mask, const char **s, size_t *pos, size_t *len, int options
546+
)
545547
{
546548
while (*len >= sizeof(__m128i)) {
547549
const __m128i input = _mm_loadu_si128((const __m128i *) (*s + *pos));

0 commit comments

Comments
 (0)