Searched refs:max (Results 1 - 25 of 52) sorted by relevance

123

/xnu-2782.1.97/libkern/zlib/
H A Dinftrees.c69 unsigned min, max; /* minimum and maximum code lengths */ local
141 for (max = MAXBITS; max >= 1; max--)
142 if (count[max] != 0) break;
143 if (root > max) root = max;
144 if (max == 0) { /* no symbols to code at all */
164 if (left > 0 && (type == CODES || max != 1))
203 all codes of length max,
[all...]
/xnu-2782.1.97/tools/tests/libMicro/apple/
H A Dlmbench_select_file.c94 int max; member in struct:__anon1243
264 for (i = 0; i <= ts->max; ++i) {
338 ts->max = 0;
349 if (fd > ts->max)
350 ts->max = fd;
357 ts->max++;
H A Dlmbench_select_tcp.c109 int max; member in struct:__anon1244
493 for (i = 0; i <= ts->max; ++i) {
562 ts->max = 0;
569 if (fd > ts->max)
570 ts->max = fd;
577 ts->max++;
H A Dlmbench_lat_ctx.c83 #ifndef max
84 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
193 int max = sched_ncpus() - 1; local
196 for (i = max>>1, nbits = 1; i > 0; i >>= 1, nbits++)
/xnu-2782.1.97/libsyscall/mach/
H A Dstring.c71 int width, max = length; local
108 return max - length;
/xnu-2782.1.97/osfmk/kern/
H A Dmk_sp.c80 int max, bas; local
106 max = rr_limit->max_priority;
107 if (invalid_pri(bas) || invalid_pri(max)) {
127 max = fifo_limit->max_priority;
128 if (invalid_pri(bas) || invalid_pri(max)) {
149 max = ts_limit->max_priority;
150 if (invalid_pri(bas) || invalid_pri(max)) {
168 /* Note that we do not pass on max priority. */
H A Daffinity.c262 * Return affinity tag info (number, min, max) for the task.
281 info->max = THREAD_AFFINITY_TAG_NULL;
292 if (info->max == THREAD_AFFINITY_TAG_NULL ||
293 aset->aset_tag > (uint32_t) info->max)
294 info->max = aset->aset_tag;
H A Dmisc_protos.h90 vm_size_t max,
H A Dipc_kobject.c165 #ifndef max
166 #define max(a,b) (((a) > (b)) ? (a) : (b)) macro
167 #endif /* max */
242 mig_table_max_displ = max(howmany, mig_table_max_displ);
/xnu-2782.1.97/tools/tests/jitter/
H A Dtimer_jitter.c80 printf("Usage: jitter [-w] [-s <random seed>] [-n <min sleep, ns>] [-m <max sleep, ns>] <realtime | timeshare | fixed> <num iterations> <traceworthy jitter, ns>\n");
191 print_stats_us(const char *label, double avg, double max, double min, double stddev) argument
193 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
201 print_stats_fract(const char *label, double avg, double max, double min, double stddev) argument
203 printf("Max %s jitter: %.1lf%%\n", label, max * 100);
230 double avg, stddev, max, min; local
397 compute_stats(jitter_arr, iterations, &avg, &max, &min, &stddev);
401 print_stats_us("jitter", avg, max, min, stddev);
411 compute_stats(wakeup_second_jitter_arr, iterations, &avg, &max, &min, &stddev);
414 print_stats_us("second jitter", avg, max, mi
[all...]
/xnu-2782.1.97/bsd/netinet/
H A Dtcp_newreno.c219 incr = max((incr * incr / cw), 1);
258 tp->snd_cwnd = max(ss, tp->t_maxseg) + tp->t_maxseg;
344 tp->snd_cwnd = max(TCP_CC_CWND_INIT_BYTES, cwnd * tp->t_maxseg);
H A Dtcp_cc.c97 sndsb->sb_idealsize = min(max(tcp_sendspace, tp->snd_ssthresh), \
309 max(2 * tp->t_maxseg, TCP_CC_CWND_INIT_BYTES));
H A Dtcp_cubic.c145 /* Initialize cubic last max to be same as ssthresh */
207 elapsed_time += max(tcp_cubic_use_minrtt, rtt);
230 * loss happened) is within a small range from the average last max
357 * If the congestion window is less than the last max window when
438 tp->snd_cwnd = max(flight_size, tp->t_maxseg)
H A Dtcp_sack.c378 tp->t_reorderwin = max(tp->t_reorderwin, rext);
381 tp->t_reorderwin = max(tp->t_reorderwin, 10);
H A Dtcp_ledbat.c117 &allowed_increase, 1, "Additive constant used to calculate max allowed congestion window");
122 &tether_shift, 1, "Tether shift for max allowed congestion window");
323 tp->snd_cwnd = max(ss, tp->t_maxseg) + tp->t_maxseg;
/xnu-2782.1.97/bsd/libkern/
H A Dlibkern.h118 max(u_int a, u_int b) function
/xnu-2782.1.97/osfmk/device/
H A Dsubrs.c373 * to max chars inside the buffer.
378 * max maximum length of string to search for null
380 * length of s or max; whichever is smaller
386 strnlen(const char *s, size_t max) { argument
387 const char *es = s + max, *p = s;
/xnu-2782.1.97/tools/tests/zero-to-n/
H A Dzero-to-n.c377 * Given an array of uint64_t values, compute average, max, min, and standard deviation
420 uint64_t max, min; local
605 compute_stats(worst_latencies_ns, g_iterations, &avg, &max, &min, &stddev);
607 printf("Max:\t\t%.2f us\n", ((float)max) / 1000.0);
614 compute_stats(worst_latencies_from_first_ns, g_iterations, &avg, &max, &min, &stddev);
616 printf("Max:\t\t%.2f us\n", ((float)max) / 1000.0);
/xnu-2782.1.97/iokit/IOKit/
H A DIOLib.h61 * min/max macros.
65 #define max(a,b) ((a) > (b) ? (a) : (b)) macro
/xnu-2782.1.97/bsd/netinet6/
H A Din6_cga.c257 in6_cga_parameters_prepare(void *output, size_t max, argument
271 max < in6_cga.cga_pubkey.iov_len + sizeof (modifier->octets) + 9) {
/xnu-2782.1.97/osfmk/vm/
H A Dvm_page.h526 1 = disable high mem ( cap max pages to 4G)
1036 #define DELAYED_WORK_LIMIT(max) ((vm_max_delayed_work_limit >= max ? max : vm_max_delayed_work_limit))
/xnu-2782.1.97/bsd/security/audit/
H A Daudit_bsd.c204 type->mt_maxsize = max(type->mt_size, type->mt_maxsize);
206 type->mt_maxused = max(type->mt_inuse, type->mt_maxused);
/xnu-2782.1.97/osfmk/x86_64/
H A Dkpc_x86.c471 uint64_t max = kpc_configurable_max(); local
489 CONFIGURABLE_RELOAD(i) = max - new_period[i];
/xnu-2782.1.97/osfmk/mach/
H A Dtask_info.h230 integer_t max; member in struct:task_affinity_tag_info
/xnu-2782.1.97/security/
H A Dmac_internal.h109 u_int max; member in struct:mac_policy_list

Completed in 74 milliseconds

123