Searched defs:sum (Results 1 - 10 of 10) sorted by relevance
| /PHP_5_3/ext/bcmath/libbcmath/src/ |
| H A D | add.c | 51 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 D | doaddsub.c | 51 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 D | recmul.c | 86 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 D | encode.c | 49 ** 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;
|
| H A D | func.c | 405 ** sum() or avg() aggregate computation. 409 double sum; /* Sum of terms */ member in struct:SumCtx 414 ** Routines used to compute the sum or average. 421 p->sum += sqliteAtoF(argv[0], 0); 428 sqlite_set_result_double(context, p ? p->sum : 0.0); 434 sqlite_set_result_double(context, p->sum/(double)p->cnt); 444 double sum; /* Sum of terms */ member in struct:StdDevCtx 460 p->sum += x; 471 sqrt((p->sum2 - p->sum*p->sum/rCn [all...] |
| /PHP_5_3/ext/standard/ |
| H A D | crypt_sha256.c | 416 /* 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 D | crypt_sha512.c | 450 /* 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 D | string.c | 2895 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 D | is_tar.c | 97 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 D | tar.c | 89 php_uint32 sum = 0; local 93 sum += (unsigned char)*buf; 96 return sum;
|
Completed in 17 milliseconds