Lines Matching refs:in
74 static zend_always_inline unsigned char *neon_base64_encode(const unsigned char *in, size_t inl, un… in neon_base64_encode() argument
88 const uint8x16x3_t x = vld3q_u8((const uint8_t *)(in)); in neon_base64_encode()
114 in += 16 * 3; in neon_base64_encode()
123 static zend_always_inline unsigned char *php_base64_encode_impl(const unsigned char *in, size_t inl… in php_base64_encode_impl() argument
128 out = neon_base64_encode(in, inl, out, &left); in php_base64_encode_impl()
129 in += inl - left; in php_base64_encode_impl()
135 *out++ = base64_table[in[0] >> 2]; in php_base64_encode_impl()
136 *out++ = base64_table[((in[0] & 0x03) << 4) + (in[1] >> 4)]; in php_base64_encode_impl()
137 *out++ = base64_table[((in[1] & 0x0f) << 2) + (in[2] >> 6)]; in php_base64_encode_impl()
138 *out++ = base64_table[in[2] & 0x3f]; in php_base64_encode_impl()
140 in += 3; in php_base64_encode_impl()
146 *out++ = base64_table[in[0] >> 2]; in php_base64_encode_impl()
148 *out++ = base64_table[((in[0] & 0x03) << 4) + (in[1] >> 4)]; in php_base64_encode_impl()
149 *out++ = base64_table[(in[1] & 0x0f) << 2]; in php_base64_encode_impl()
152 *out++ = base64_table[(in[0] & 0x03) << 4]; in php_base64_encode_impl()
177 static zend_always_inline size_t neon_base64_decode(const unsigned char *in, size_t inl, unsigned c… in neon_base64_decode() argument
211 const uint8x16x4_t x = vld4q_u8((const unsigned char *)in); in neon_base64_decode()
238 in += 16 * 4; in neon_base64_decode()
246 static zend_always_inline int php_base64_decode_impl(const unsigned char *in, size_t inl, unsigned … in php_base64_decode_impl() argument
254 j += neon_base64_decode(in, inl, out, &left); in php_base64_decode_impl()
256 in += i; in php_base64_decode_impl()
263 ch = *in++; in php_base64_decode_impl()
457 static __m256i php_base64_encode_avx2_reshuffle(__m256i in) __attribute__((target("avx2")));
458 static __m256i php_base64_encode_avx2_translate(__m256i in) __attribute__((target("avx2")));
460 static __m256i php_base64_encode_avx2_reshuffle(__m256i in) in php_base64_encode_avx2_reshuffle() argument
469 in = _mm256_shuffle_epi8(in, _mm256_set_epi8( in php_base64_encode_avx2_reshuffle()
480 t0 = _mm256_and_si256(in, _mm256_set1_epi32(0x0fc0fc00)); in php_base64_encode_avx2_reshuffle()
484 t2 = _mm256_and_si256(in, _mm256_set1_epi32(0x003f03f0)); in php_base64_encode_avx2_reshuffle()
499 static __m256i php_base64_encode_avx2_translate(__m256i in) in php_base64_encode_avx2_translate() argument
509 indices = _mm256_subs_epu8(in, _mm256_set1_epi8(51)); in php_base64_encode_avx2_translate()
511 mask = _mm256_cmpgt_epi8(in, _mm256_set1_epi8(25)); in php_base64_encode_avx2_translate()
515 return _mm256_add_epi8(in, _mm256_shuffle_epi8(lut, indices)); in php_base64_encode_avx2_translate()
523 static __m128i php_base64_encode_ssse3_reshuffle(__m128i in) __attribute__((target("ssse3")));
524 static __m128i php_base64_encode_ssse3_translate(__m128i in) __attribute__((target("ssse3")));
527 static __m128i php_base64_encode_ssse3_reshuffle(__m128i in) in php_base64_encode_ssse3_reshuffle() argument
533 in = _mm_shuffle_epi8(in, _mm_set_epi8( in php_base64_encode_ssse3_reshuffle()
539 t0 = _mm_and_si128(in, _mm_set1_epi32(0x0fc0fc00)); in php_base64_encode_ssse3_reshuffle()
543 t2 = _mm_and_si128(in, _mm_set1_epi32(0x003f03f0)); in php_base64_encode_ssse3_reshuffle()
555 static __m128i php_base64_encode_ssse3_translate(__m128i in) in php_base64_encode_ssse3_translate() argument
575 indices = _mm_subs_epu8(in, _mm_set1_epi8(51)); in php_base64_encode_ssse3_translate()
578 mask = _mm_cmpgt_epi8(in, _mm_set1_epi8(25)); in php_base64_encode_ssse3_translate()
584 return _mm_add_epi8(in, _mm_shuffle_epi8(lut, indices)); in php_base64_encode_ssse3_translate()
675 static __m256i php_base64_decode_avx2_reshuffle(__m256i in) __attribute__((target("avx2")));
678 static __m256i php_base64_decode_avx2_reshuffle(__m256i in) in php_base64_decode_avx2_reshuffle() argument
682 merge_ab_and_bc = _mm256_maddubs_epi16(in, _mm256_set1_epi32(0x01400140)); in php_base64_decode_avx2_reshuffle()
696 static __m128i php_base64_decode_ssse3_reshuffle(__m128i in) __attribute__((target("ssse3")));
699 static __m128i php_base64_decode_ssse3_reshuffle(__m128i in) in php_base64_decode_ssse3_reshuffle() argument
703 merge_ab_and_bc = _mm_maddubs_epi16(in, _mm_set1_epi32(0x01400140)); in php_base64_decode_ssse3_reshuffle()