Searched refs:sum (Results 1 - 9 of 9) sorted by relevance

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dadd.c51 bc_num sum = NULL; local
57 sum = _bc_do_add (n1, n2, scale_min);
58 sum->n_sign = n1->n_sign;
68 sum = _bc_do_sub (n2, n1, scale_min);
69 sum->n_sign = n2->n_sign;
74 sum = bc_new_num (1, res_scale);
75 memset (sum->n_value, 0, res_scale+1);
79 sum = _bc_do_sub (n1, n2, scale_min);
80 sum->n_sign = n1->n_sign;
86 *result = sum;
[all...]
H A Ddoaddsub.c51 bc_num sum; local
57 /* Prepare sum. */
60 sum = bc_new_num (sum_digits, MAX(sum_scale, scale_min));
65 sumptr = (char *) (sum->n_value + sum_scale + sum_digits);
75 sumptr = (char *) (sum->n_value + sum_scale + sum_digits - 1);
127 /* Adjust sum and return. */
128 _bc_rm_leading_zeros (sum);
129 return sum;
H A Drecmul.c86 int indx, sum, prodlen; local
95 sum = 0;
103 sum += *n1ptr-- * *n2ptr++;
104 *pvptr-- = sum % BASE;
105 sum = sum / BASE;
107 *pvptr = sum;
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dis_tar.c97 int sum, recsum; local
105 sum = 0;
108 sum += *p++;
112 sum -= header->header.chksum[i];
113 sum += ' ' * sizeof header->header.chksum;
115 if (sum != recsum)
/PHP_TRUNK/ext/standard/
H A Dcrypt_sha256.c410 /* Compute alternate SHA256 sum with input KEY, SALT, and KEY. The
427 /* Add for any character in the key one byte of the alternate sum. */
434 1 add the alternate sum, for every 0 the key. */
697 char sum[32]; local
708 sha256_finish_ctx(&ctx, sum);
709 if (memcmp(tests[cnt].result, sum, 32) != 0) {
718 sha256_finish_ctx(&ctx, sum);
719 if (memcmp(tests[cnt].result, sum, 32) != 0) {
733 sha256_finish_ctx(&ctx, sum);
735 if (memcmp(expected, sum, 3
[all...]
H A Dcrypt_sha512.c444 /* Compute alternate SHA512 sum with input KEY, SALT, and KEY. The
461 /* Add for any character in the key one byte of the alternate sum. */
468 1 add the alternate sum, for every 0 the key. */
761 char sum[64]; local
775 sha512_finish_ctx (&ctx, sum);
776 if (memcmp (tests[cnt].result, sum, 64) != 0) {
785 sha512_finish_ctx (&ctx, sum);
786 if (memcmp (tests[cnt].result, sum, 64) != 0) {
800 sha512_finish_ctx (&ctx, sum);
801 if (memcmp (expected, sum, 6
[all...]
H A Dstring.c3214 int sum; local
3218 if ((sum = max)) {
3220 sum += php_similar_char(txt1, pos1,
3224 sum += php_similar_char(txt1 + pos1 + max, len1 - pos1 - max,
3229 return sum;
/PHP_TRUNK/ext/dom/tests/
H A Ddomdocumentload_utilities.php9 $sum = 0; variable
11 $sum = $sum|$value; variable
14 return $sum;
/PHP_TRUNK/ext/phar/
H A Dtar.c89 php_uint32 sum = 0; local
93 sum += (unsigned char)*buf;
96 return sum;

Completed in 17 milliseconds