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

/PHP_5_3/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_5_3/ext/sqlite/libsqlite/src/
H A Dencode.c49 ** the sum of the original character value and the offset exceeds 256, then
72 ** If the sum is 0x01, replace it with 0x01 0x02. If the sum
138 int sum; local
140 sum = cnt[i] + cnt[(i+1)&0xff] + cnt[(i+'\'')&0xff];
141 if( sum<m ){
142 m = sum;
/PHP_5_3/ext/standard/
H A Dcrypt_sha256.c416 /* Compute alternate SHA256 sum with input KEY, SALT, and KEY. The
433 /* Add for any character in the key one byte of the alternate sum. */
440 1 add the alternate sum, for every 0 the key. */
703 char sum[32]; local
714 sha256_finish_ctx(&ctx, sum);
715 if (memcmp(tests[cnt].result, sum, 32) != 0) {
724 sha256_finish_ctx(&ctx, sum);
725 if (memcmp(tests[cnt].result, sum, 32) != 0) {
739 sha256_finish_ctx(&ctx, sum);
741 if (memcmp(expected, sum, 3
[all...]
H A Dcrypt_sha512.c450 /* Compute alternate SHA512 sum with input KEY, SALT, and KEY. The
467 /* Add for any character in the key one byte of the alternate sum. */
474 1 add the alternate sum, for every 0 the key. */
767 char sum[64]; local
781 sha512_finish_ctx (&ctx, sum);
782 if (memcmp (tests[cnt].result, sum, 64) != 0) {
791 sha512_finish_ctx (&ctx, sum);
792 if (memcmp (tests[cnt].result, sum, 64) != 0) {
806 sha512_finish_ctx (&ctx, sum);
807 if (memcmp (expected, sum, 6
[all...]
H A Dstring.c2895 int sum; local
2899 if ((sum = max)) {
2901 sum += php_similar_char(txt1, pos1,
2905 sum += php_similar_char(txt1 + pos1 + max, len1 - pos1 - max,
2910 return sum;
/PHP_5_3/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_5_3/ext/phar/
H A Dtar.c89 php_uint32 sum = 0; local
93 sum += (unsigned char)*buf;
96 return sum;

Completed in 56 milliseconds