HelenOS sources
max 614 common/printf/printf_core.c int padding_len = max(0, width - ((sign ? 1 : 0) + str_len));
max 717 common/printf/printf_core.c int int_len = max(1, len + dec_exp);
max 722 common/printf/printf_core.c int last_frac_signif_pos = max(0, -dec_exp);
max 723 common/printf/printf_core.c int leading_frac_zeros = max(0, last_frac_signif_pos - len);
max 739 common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 890 common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 969 common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 1151 common/printf/printf_core.c precision = max(1, precision);
max 1183 common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 1504 common/printf/printf_core.c precision = max(0, precision);
max 184 common/strtol.c uintmax_t max = _max_value(base);
max 188 common/strtol.c if (result > max ||
max 219 common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
max 224 common/strtol.c if (number > (uintmax_t) max) {
max 225 common/strtol.c if (sgn && (number - 1 == (uintmax_t) max)) {
max 230 common/strtol.c return (sgn ? min : max);
max 237 common/strtol.c uintmax_t max, errno_t *err, bool nonstd)
max 248 common/strtol.c if (number > max) {
max 250 common/strtol.c return max;
max 157 kernel/arch/amd64/src/mm/frame.c minconf = max(minconf,
max 157 kernel/arch/ia32/src/mm/frame.c minconf = max(minconf,
max 78 kernel/arch/ia64/src/mm/frame.c zone_create(pfn, count, max(MINCONF, pfn),
max 79 kernel/arch/sparc64/src/smp/sun4u/smp.c config.cpu_count = max(1, cnt);
max 614 kernel/generic/common/printf/printf_core.c int padding_len = max(0, width - ((sign ? 1 : 0) + str_len));
max 717 kernel/generic/common/printf/printf_core.c int int_len = max(1, len + dec_exp);
max 722 kernel/generic/common/printf/printf_core.c int last_frac_signif_pos = max(0, -dec_exp);
max 723 kernel/generic/common/printf/printf_core.c int leading_frac_zeros = max(0, last_frac_signif_pos - len);
max 739 kernel/generic/common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 890 kernel/generic/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 969 kernel/generic/common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 1151 kernel/generic/common/printf/printf_core.c precision = max(1, precision);
max 1183 kernel/generic/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 1504 kernel/generic/common/printf/printf_core.c precision = max(0, precision);
max 184 kernel/generic/common/strtol.c uintmax_t max = _max_value(base);
max 188 kernel/generic/common/strtol.c if (result > max ||
max 219 kernel/generic/common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
max 224 kernel/generic/common/strtol.c if (number > (uintmax_t) max) {
max 225 kernel/generic/common/strtol.c if (sgn && (number - 1 == (uintmax_t) max)) {
max 230 kernel/generic/common/strtol.c return (sgn ? min : max);
max 237 kernel/generic/common/strtol.c uintmax_t max, errno_t *err, bool nonstd)
max 248 kernel/generic/common/strtol.c if (number > max) {
max 250 kernel/generic/common/strtol.c return max;
max 116 kernel/generic/include/macros.h #define max3(a, b, c) ((a) > (b) ? (max(a, c)) : (max(b, c)))
max 694 kernel/generic/src/console/kconsole.c max(str_length(hlp->name),
max 739 kernel/generic/src/mm/frame.c config.physmem_end = max(config.physmem_end, PFN2ADDR(start + count));
max 146 kernel/generic/src/mm/km.c vaddr = km_page_alloc(size, max(PAGE_SIZE, align));
max 47 kernel/test/synch/semaphore2.c static uint32_t random(uint32_t max)
max 52 kernel/test/synch/semaphore2.c rc = seed % max;
max 204 uspace/app/bdsh/compl.c dirname = str_ndup(prefix, max(1, rpath_sep - prefix));
max 180 uspace/app/edit/sheet.c shrink_size = max(sh->dbuf_size / 4, INITIAL_SIZE);
max 171 uspace/dist/src/c/demos/edit/sheet.c shrink_size = max(sh->dbuf_size / 4, INITIAL_SIZE);
max 109 uspace/drv/bus/pci/pciintel/ctl.c buf = malloc(max(1, size));
max 65 uspace/drv/bus/usb/xhci/isoch.c isoch->buffer_count = max(2, isoch->buffer_count);
max 447 uspace/drv/bus/usb/xhci/streams.c unsigned max = 0;
max 449 uspace/drv/bus/usb/xhci/streams.c if (sizes[count] > max) {
max 450 uspace/drv/bus/usb/xhci/streams.c max = sizes[count];
max 454 uspace/drv/bus/usb/xhci/streams.c if (max * count > xhci_ep->max_streams) {
max 73 uspace/lib/bithenge/src/blob.c blob->buffer_size = max(4096, 2 * blob->buffer_size);
max 614 uspace/lib/c/common/printf/printf_core.c int padding_len = max(0, width - ((sign ? 1 : 0) + str_len));
max 717 uspace/lib/c/common/printf/printf_core.c int int_len = max(1, len + dec_exp);
max 722 uspace/lib/c/common/printf/printf_core.c int last_frac_signif_pos = max(0, -dec_exp);
max 723 uspace/lib/c/common/printf/printf_core.c int leading_frac_zeros = max(0, last_frac_signif_pos - len);
max 739 uspace/lib/c/common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 890 uspace/lib/c/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 969 uspace/lib/c/common/printf/printf_core.c int padding_len = max(0, width - num_len);
max 1151 uspace/lib/c/common/printf/printf_core.c precision = max(1, precision);
max 1183 uspace/lib/c/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
max 1504 uspace/lib/c/common/printf/printf_core.c precision = max(0, precision);
max 184 uspace/lib/c/common/strtol.c uintmax_t max = _max_value(base);
max 188 uspace/lib/c/common/strtol.c if (result > max ||
max 219 uspace/lib/c/common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
max 224 uspace/lib/c/common/strtol.c if (number > (uintmax_t) max) {
max 225 uspace/lib/c/common/strtol.c if (sgn && (number - 1 == (uintmax_t) max)) {
max 230 uspace/lib/c/common/strtol.c return (sgn ? min : max);
max 237 uspace/lib/c/common/strtol.c uintmax_t max, errno_t *err, bool nonstd)
max 248 uspace/lib/c/common/strtol.c if (number > max) {
max 250 uspace/lib/c/common/strtol.c return max;
max 218 uspace/lib/c/generic/elf/elf_mod.c module_top = max(module_top, phdr[i].p_vaddr + phdr[i].p_memsz);
max 810 uspace/lib/c/generic/malloc.c 1 << (fnzb(max(sizeof(void *), align) - 1) + 1);
max 372 uspace/lib/c/generic/rtld/module.c rtld->tls_align = max(rtld->tls_align, m->tls_align);
max 385 uspace/lib/c/generic/rtld/module.c rtld->tls_align = max(rtld->tls_align, m->tls_align);
max 72 uspace/lib/c/generic/thread/tls.c return -ALIGN_UP((ptrdiff_t) tls_size, max(tls_align, alignof(tcb_t)));
max 107 uspace/lib/c/generic/thread/tls.c ALIGN_UP(tls_size, max(tls_align, alignof(tcb_t))) + sizeof(tcb_t);
max 110 uspace/lib/c/generic/thread/tls.c void *area = alloc(max(tls_align, alignof(tcb_t)), alloc_size);
max 190 uspace/lib/c/generic/thread/tls.c max(tls->p_align, alignof(tcb_t)));
max 697 uspace/lib/c/generic/time.c ts->tv_sec = max(s1, s2);
max 124 uspace/lib/clui/src/tinput.c sa = max(start, sa);
max 125 uspace/lib/clui/src/tinput.c sb = max(start, sb);
max 639 uspace/lib/clui/src/tinput.c max_width = max(max_width, str_width(compl[i]));
max 641 uspace/lib/clui/src/tinput.c unsigned int cols = max(1, (ti->con_cols + 1) / (max_width + 1));
max 337 uspace/lib/cpp/include/__bits/adt/hash_table.hpp return numeric_limits<size_type>::max() /
max 555 uspace/lib/cpp/include/__bits/adt/vector.hpp return max(capacity_ * 2, hint);
max 557 uspace/lib/cpp/include/__bits/adt/vector.hpp return max(capacity_ * 2, size_type{2u});
max 577 uspace/lib/cpp/include/__bits/adt/vector.hpp tmp.resize_without_copy_(max(new_size, capacity_));
max 188 uspace/lib/cpp/include/__bits/chrono.hpp return duration{duration_values<rep>::max()};
max 264 uspace/lib/cpp/include/__bits/chrono.hpp return time_point{duration::max()};
max 320 uspace/lib/cpp/include/__bits/chrono.hpp return numeric_limits<Rep>::max();
max 191 uspace/lib/cpp/include/__bits/io/istream.hpp else if (numeric_limits<short>::max() < tmp)
max 194 uspace/lib/cpp/include/__bits/io/istream.hpp x = numeric_limits<short>::max();
max 240 uspace/lib/cpp/include/__bits/io/istream.hpp else if (numeric_limits<int>::max() < tmp)
max 243 uspace/lib/cpp/include/__bits/io/istream.hpp x = numeric_limits<int>::max();
max 568 uspace/lib/cpp/include/__bits/io/istream.hpp while (n == numeric_limits<streamsize>::max() || i < n)
max 840 uspace/lib/cpp/include/__bits/io/istream.hpp n = (numeric_limits<size_t>::max() / sizeof(Char)) - sizeof(Char);
max 92 uspace/lib/cpp/include/__bits/locale/codecvt.hpp size_t max) const
max 94 uspace/lib/cpp/include/__bits/locale/codecvt.hpp return do_length(state, from, end, max);
max 143 uspace/lib/cpp/include/__bits/locale/codecvt.hpp size_t max) const
max 317 uspace/lib/cpp/include/__bits/locale/num_get.hpp if (res > static_cast<BaseType>(numeric_limits<T>::max()))
max 320 uspace/lib/cpp/include/__bits/locale/num_get.hpp v = numeric_limits<T>::max();
max 136 uspace/lib/cpp/include/__bits/memory/allocator_traits.hpp return numeric_limits<size_type>::max();
max 226 uspace/lib/cpp/include/__bits/memory/allocator_traits.hpp return numeric_limits<size_type>::max();
max 206 uspace/lib/cpp/include/__bits/random.hpp (m == 0) ? (numeric_limits<result_type>::max() + 1) : m;
max 646 uspace/lib/cpp/include/__bits/random.hpp return Engine::max();
max 886 uspace/lib/cpp/include/__bits/random.hpp return Engine::max();
max 1016 uspace/lib/cpp/include/__bits/random.hpp return numeric_limits<result_type>::max();
max 1154 uspace/lib/cpp/include/__bits/random.hpp RealType r = g.max() - g.min() + 1;
max 1177 uspace/lib/cpp/include/__bits/random.hpp result_type b = numeric_limits<result_type>::max())
max 1511 uspace/lib/cpp/include/__bits/string/string.hpp return max(capacity_ * 2, hint);
max 1513 uspace/lib/cpp/include/__bits/string/string.hpp return max(capacity_ * 2, size_type{2u});
max 1524 uspace/lib/cpp/include/__bits/string/string.hpp resize_with_copy_(size_, max(size_ + 1 + n, next_capacity_()));
max 139 uspace/lib/cpp/src/ios.cpp size_t new_size = max(iarray_size_ * 2, idx + 1);
max 171 uspace/lib/cpp/src/ios.cpp size_t new_size = max(parray_size_ * 2, idx + 1);
max 297 uspace/lib/crypto/crypto.c uint8_t temp_work[HMAC_BLOCK_LENGTH + max(msg_size, hash_sel)];
max 172 uspace/lib/ext4/src/bitmap.c uint32_t *index, uint32_t max)
max 185 uspace/lib/ext4/src/bitmap.c while (idx < max) {
max 214 uspace/lib/ext4/src/bitmap.c uint32_t *index, uint32_t max)
max 237 uspace/lib/ext4/src/bitmap.c while (idx < max) {
max 248 uspace/lib/ext4/src/bitmap.c if (idx < max) {
max 330 uspace/lib/ext4/src/inode.c uint64_t max = 0;
max 331 uspace/lib/ext4/src/inode.c max = ~max >> 32;
max 333 uspace/lib/ext4/src/inode.c if (count <= max) {
max 347 uspace/lib/ext4/src/inode.c max = 0;
max 348 uspace/lib/ext4/src/inode.c max = ~max >> 16;
max 350 uspace/lib/ext4/src/inode.c if (count <= max) {
max 571 uspace/lib/fdisk/src/fdisk.c hdrb = max(1, dev->align);
max 695 uspace/lib/fdisk/src/fdisk.c hdrb = max(1, dev->align);
max 716 uspace/lib/fdisk/src/fdisk.c hdrb = max(1, dev->align);
max 992 uspace/lib/fdisk/src/fdisk.c hdrb = max(1, dev->align);
max 102 uspace/lib/gfx/src/coord.c d->x = max(clip->p0.x, t.x);
max 103 uspace/lib/gfx/src/coord.c d->y = max(clip->p0.y, t.y);
max 208 uspace/lib/gfx/src/coord.c dest->p1.x = max(sa.p1.x, sb.p1.x);
max 209 uspace/lib/gfx/src/coord.c dest->p1.y = max(sa.p1.y, sb.p1.y);
max 234 uspace/lib/gfx/src/coord.c dest->p0.x = min(max(srect.p0.x, sclip.p0.x), sclip.p1.x);
max 235 uspace/lib/gfx/src/coord.c dest->p0.y = min(max(srect.p0.y, sclip.p0.y), sclip.p1.y);
max 236 uspace/lib/gfx/src/coord.c dest->p1.x = max(sclip.p0.x, min(srect.p1.x, sclip.p1.x));
max 237 uspace/lib/gfx/src/coord.c dest->p1.y = max(sclip.p0.y, min(srect.p1.y, sclip.p1.y));
max 191 uspace/lib/gfxfont/src/glyph_bmp.c gfx_coord2_t max;
max 197 uspace/lib/gfxfont/src/glyph_bmp.c max.x = bmp->rect.p0.x;
max 198 uspace/lib/gfxfont/src/glyph_bmp.c max.y = bmp->rect.p0.y;
max 210 uspace/lib/gfxfont/src/glyph_bmp.c if (x > max.x)
max 211 uspace/lib/gfxfont/src/glyph_bmp.c max.x = x;
max 212 uspace/lib/gfxfont/src/glyph_bmp.c if (y > max.y)
max 213 uspace/lib/gfxfont/src/glyph_bmp.c max.y = y;
max 221 uspace/lib/gfxfont/src/glyph_bmp.c rect->p1.x = max.x + 1;
max 222 uspace/lib/gfxfont/src/glyph_bmp.c rect->p1.y = max.y + 1;
max 69 uspace/lib/termui/src/history.c size_t new_len = max(cells->max_len, cells->head_top);
max 86 uspace/lib/termui/src/history.c size_t new_len = max(lines->max_len, lines->tail + 1);
max 193 uspace/lib/termui/src/history.c len = max(len, MIN_EXTEND_LEN);
max 196 uspace/lib/termui/src/history.c len = max(len, cells->buf_len);
max 232 uspace/lib/termui/src/history.c len = max(len, lines->buf_len);
max 592 uspace/lib/termui/src/history.c int _history_viewport_rows(const struct history *history, size_t max)
max 601 uspace/lib/termui/src/history.c while (rows < max && current != history->lines.tail) {
max 606 uspace/lib/termui/src/history.c return (rows > max) ? max : rows;
max 82 uspace/lib/termui/src/history.h INTERNAL int _history_viewport_rows(const struct history *history, size_t max);
max 727 uspace/lib/trackmod/trackmod.c np = max((int)chan->period_tgt, (int)chan->period - chan->portamento);
max 326 uspace/lib/ui/src/entry.c off2 = max(entry->pos, entry->sel_start);
max 463 uspace/lib/ui/src/entry.c off2 = max(entry->sel_start, entry->pos);
max 587 uspace/lib/ui/src/entry.c off2 = max(entry->pos, entry->sel_start);
max 1025 uspace/srv/hid/display/window.c nrect->p1.y = max(wnd->rect.p1.y + dresize->y,
max 1032 uspace/srv/hid/display/window.c nrect->p1.x = max(wnd->rect.p1.x + dresize->x,
max 225 uspace/srv/hid/rfb/rfb.c static uint32_t rfb_scale_channel(uint8_t val, uint32_t max)
max 227 uspace/srv/hid/rfb/rfb.c return val * max / 255;
max 248 uspace/srv/hid/rfb/rfb.c rfb->palette_used = max(rfb->palette_used, (unsigned) first_free_index + 1);
max 55 uspace/srv/net/ethip/pdu.c size = max(sizeof(eth_header_t) + frame->size, ETH_FRAME_MIN_SIZE);
max 344 uspace/srv/net/inetsrv/reass.c cb = max(doffs, cfrag->packet.offs);
max 465 uspace/srv/net/udp/service.c max(size, (size_t)sizeof(inet_ep_t)));
HelenOS homepage, sources at GitHub