/dovecot/src/lib/ |
H A D | test-stats-dist.c | 11 uint64_t min = INT_MAX, max = 0, sum = 0; local 23 if (max < value) 24 max = value; 33 test_assert_idx(stats_dist_get_max(t) == max, input_size); 40 /* when we have 20 elements, [19] is the max, not the 95th %ile, so subtract 1 */
|
H A D | test-base32.c | 147 unsigned int i, j, max; local 154 max = i_rand_limit(sizeof(buf)); 155 for (j = 0; j < max; j++) 160 base32_encode(TRUE, buf, max, str); 162 test_assert(str_len(dest) == max && 163 memcmp(buf, str_data(dest), max) == 0); 169 max = i_rand_limit(sizeof(buf)); 170 for (j = 0; j < max; j++) 175 base32hex_encode(TRUE, buf, max, str); 177 test_assert(str_len(dest) == max [all...] |
H A D | test-base64.c | 83 unsigned int i, j, max; local 90 max = i_rand_limit(sizeof(buf)); 91 for (j = 0; j < max; j++) 96 base64_encode(buf, max, str); 98 test_assert(str_len(dest) == max && 99 memcmp(buf, str_data(dest), max) == 0);
|
H A D | istream-crlf.c | 119 size_t i, dest, size, max; local 155 max = I_MIN(size - i, stream->buffer_size - dest); 156 p = memchr(data + i, '\r', max); 158 max = p - (data+i); 159 memcpy(stream->w_buffer + dest, data + i, max); 160 dest += max; 161 i += max;
|
H A D | test-str-find.c | 13 unsigned int i, j, pos, max, offset; local 20 max = 1U << (text_len-1); 21 for (i = 0; i < max; i++) {
|
H A D | stats-dist.c | 16 uint64_t max; member in struct:stats_dist 54 stats->min = stats->max = value; 63 if (stats->max < value) 64 stats->max = value; 87 return stats->max;
|
H A D | test-seq-range-array.c | 167 static void test_seq_range_array_invert_minmax(uint32_t min, uint32_t max) argument 171 unsigned int n, inverse_mask, mask_inside, mask_size = max-min+1; 182 seq_range_array_invert(&range, min, max); 187 test_assert(seq >= min && seq <= max); 201 for (unsigned int max = min; max <= 7; max++) T_BEGIN { 202 test_seq_range_array_invert_minmax(min, max); 207 for (uint64_t max = min; max < [all...] |
H A D | buffer.c | 57 size_t max = I_MIN(I_MIN(buf->alloc, buf->dirty), new_size); local 59 memset(buf->w_buffer + buf->used, 0, max - buf->used);
|
/dovecot/src/lib-mail/ |
H A D | message-header-encode.c | 112 unsigned int line_len, line_len_left, max; local 122 max = MAX_BASE64_DECODED_SIZE(line_len_left); 124 max--; 125 if (max > len) 126 max = len; 130 while (max > 0 && (input[max] & 0xc0) == 0x80) 131 max--; 133 } while (MAX_BASE64_ENCODED_SIZE(max) > line_len_left && 134 max > [all...] |
H A D | test-message-header-parser.c | 173 unsigned int i, max = (strlen(test1_msg)-TEST1_MSG_BODY_LEN)*2; local 181 str = t_str_new(max); 183 for (i = 0; i <= max; i++) { 187 test_assert((ret == 0 && i < max) || 188 (ret < 0 && i == max));
|
/dovecot/src/lib-fs/ |
H A D | ostream-cmp.c | 32 size_t insize, max; local 36 max = I_MIN(insize, size); 37 if (insize == 0 || memcmp(data, indata, max) != 0) 39 data += max; 40 size -= max; 41 i_stream_skip(input, max);
|
/dovecot/src/doveadm/ |
H A D | doveadm-mail-index.c | 38 unsigned int counter = 0, max; local 76 max = status.messages - seq + 1; 80 printf("\r%u/%u", counter, max); 85 printf("\r%u/%u\n", counter, max); 286 .usage = DOVEADM_CMD_MAIL_USAGE_PREFIX"[-q] [-n <max recent>] <mailbox mask>", 291 DOVEADM_CMD_PARAM('n',"max-recent",CMD_PARAM_STR,0)
|
/dovecot/src/indexer/ |
H A D | master-connection.c | 67 unsigned int counter = 0, max, percentage, percentage_sent = 0; local 94 max = status.messages + 1 - seq; 102 percentage = counter*100 / max; 113 counter, max);
|
/dovecot/src/lib-fts/ |
H A D | test-fts-tokenizer.c | 83 unsigned int i, outi, max, char_len; local 116 max = i_rand_minmax(1, input_len - i); 117 for (char_len = 0; char_len < max; )
|
/dovecot/src/lib-index/ |
H A D | mail-index-fsck.c | 99 unsigned int r, i, j, cur, max = 0, kw_pos, kw_size; local 115 if (cur > max) { 116 max = cur; 117 if (max == kw_size*8) 118 return max; 122 return max;
|
H A D | mail-index-transaction-update.c | 442 unsigned int count, first_idx, max; local 526 max = count == 0 ? 0 : I_MIN(t->last_update_idx + 1, count-1); 527 for (; idx < max; ) { 534 max--;
|
/dovecot/src/lib-storage/index/ |
H A D | index-thread.c | 170 unsigned int i, nodes_count, max, new_first_invalid, invalid_count; local 193 max = I_MIN(I_MIN(old_count, nodes_count), 195 for (i = 0; i < max; i++) { 387 we expect to find all removed UIDs from msgid_map that are <= max
|
/dovecot/src/lib-http/ |
H A D | http-client-request.c | 617 unsigned int max; local 625 max = (req->client->set.max_auto_retry_delay == 0 ? 628 if ((unsigned int)(retry_after - ioloop_time) > max)
|
/dovecot/src/plugins/fts-squat/ |
H A D | squat-uidlist.c | 788 unsigned int i, j, count, max; local 803 max = I_MIN(count - i, UIDLIST_BLOCK_LIST_COUNT); 804 for (j = 0; j < max; j++) { 814 block_end_idx = ctx->list_start_idx + i + max; 824 for (j = 0; j < max; j++) {
|