/php-src/ext/bcmath/libbcmath/src/ |
H A D | recmul.c | 248 size_t len1 = n1->n_len + n1->n_scale; in bc_multiply() local 254 if (len1 <= BC_VECTOR_SIZE && len2 <= BC_VECTOR_SIZE) { in bc_multiply() 255 bc_fast_mul(n1, len1, n2, len2, &prod); in bc_multiply() 257 bc_standard_mul(n1, len1, n2, len2, &prod); in bc_multiply() 275 size_t len1 = n1->n_len + n1->n_scale; in bc_square() local 279 if (len1 <= BC_VECTOR_SIZE) { in bc_square() 280 bc_fast_square(n1, len1, &prod); in bc_square() 282 bc_standard_square(n1, len1, &prod); in bc_square()
|
/php-src/ext/date/lib/ |
H A D | timelib.c | 260 size_t len1 = strlen(s1); in timelib_strcasecmp() local 268 len = MIN(len1, len2); in timelib_strcasecmp() 277 return (int)(len1 - len2); in timelib_strcasecmp() 283 size_t len1 = strlen(s1); in timelib_strncasecmp() local 290 len = MIN(length, MIN(len1, len2)); in timelib_strncasecmp() 299 return (int)(MIN(length, len1) - MIN(length, len2)); in timelib_strncasecmp()
|
/php-src/ext/phar/ |
H A D | phar_internal.h | 387 size_t len1, len2; in phar_set_inode() local 391 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode() 393 memcpy(tmp, entry->phar->fname, len1); in phar_set_inode() 396 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode() 397 memcpy(tmp + len1, entry->filename, len2); in phar_set_inode()
|
/php-src/Zend/ |
H A D | zend_operators.h | 487 ZEND_API int ZEND_FASTCALL zend_binary_strcmp(const char *s1, size_t len1, const char *s2, size_t l… 488 ZEND_API int ZEND_FASTCALL zend_binary_strncmp(const char *s1, size_t len1, const char *s2, size_t … 489 ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp(const char *s1, size_t len1, const char *s2, size… 490 ZEND_API int ZEND_FASTCALL zend_binary_strncasecmp(const char *s1, size_t len1, const char *s2, siz… 491 ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp_l(const char *s1, size_t len1, const char *s2, si… 492 ZEND_API int ZEND_FASTCALL zend_binary_strncasecmp_l(const char *s1, size_t len1, const char *s2, s…
|
H A D | zend_operators.c | 3167 retval = memcmp(s1, s2, MIN(len1, len2)); in zend_binary_strcmp() 3169 return ZEND_THREEWAY_COMPARE(len1, len2); in zend_binary_strcmp() 3183 retval = memcmp(s1, s2, MIN(length, MIN(len1, len2))); in zend_binary_strncmp() 3201 len = MIN(len1, len2); in zend_binary_strcasecmp() 3210 return ZEND_THREEWAY_COMPARE(len1, len2); in zend_binary_strcasecmp() 3222 len = MIN(length, MIN(len1, len2)); in zend_binary_strncasecmp() 3231 return ZEND_THREEWAY_COMPARE(MIN(length, len1), MIN(length, len2)); in zend_binary_strncasecmp() 3244 len = MIN(len1, len2); in zend_binary_strcasecmp_l() 3253 return ZEND_THREEWAY_COMPARE(len1, len2); in zend_binary_strcasecmp_l() 3265 len = MIN(length, MIN(len1, len2)); in zend_binary_strncasecmp_l() [all …]
|
/php-src/ext/sodium/ |
H A D | libsodium.c | 272 size_t len1; in PHP_FUNCTION() local 276 &buf1, &len1, in PHP_FUNCTION() 281 if (len1 != len2) { in PHP_FUNCTION() 285 RETURN_LONG(sodium_memcmp(buf1, buf2, len1)); in PHP_FUNCTION() 3008 size_t len1; in PHP_FUNCTION() local 3012 &buf1, &len1, in PHP_FUNCTION() 3017 if (len1 != len2) { in PHP_FUNCTION() 3022 (const unsigned char *) buf2, (size_t) len1)); in PHP_FUNCTION()
|
/php-src/ext/openssl/ |
H A D | openssl.c | 7267 int i, len1, len2, *eksl, nkeys, iv_len; local 7336 !EVP_SealUpdate(ctx, buf, &len1, (unsigned char *)data, (int)data_len) || 7337 !EVP_SealFinal(ctx, buf + len1, &len2)) { 7345 if (len1 + len2 > 0) { 7346 ZEND_TRY_ASSIGN_REF_NEW_STR(sealdata, zend_string_init((char*)buf, len1 + len2, 0)); 7369 RETVAL_LONG(len1 + len2); 7392 int len1, len2, cipher_iv_len; local 7444 EVP_OpenUpdate(ctx, buf, &len1, (unsigned char *)data, (int)data_len) && 7445 EVP_OpenFinal(ctx, buf + len1, &len2) && (len1 + len2 > 0)) { 7446 buf[len1 + len2] = '\0'; [all …]
|
/php-src/ext/standard/ |
H A D | string.c | 3585 static void php_similar_str(const char *txt1, size_t len1, const char *txt2, size_t len2, size_t *p… argument 3588 const char *end1 = (char *) txt1 + len1; 3609 static size_t php_similar_char(const char *txt1, size_t len1, const char *txt2, size_t len2) argument 3614 php_similar_str(txt1, len1, txt2, len2, &pos1, &pos2, &max, &count); 3620 if ((pos1 + max < len1) && (pos2 + max < len2)) { 3621 sum += php_similar_char(txt1 + pos1 + max, len1 - pos1 - max,
|
/php-src/ext/odbc/ |
H A D | php_odbc.c | 1234 SQLSMALLINT len1=0, len2=0, fetch_type; in PHP_FUNCTION() local 1255 &len1, in PHP_FUNCTION() 1270 if (len1 == 0 || len2 == 0) { in PHP_FUNCTION()
|