HelenOS sources
min 123 common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 177 common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 724 common/printf/printf_core.c int signif_frac_figs = min(last_frac_signif_pos, len);
min 768 common/printf/printf_core.c int buf_int_len = min(len, len + dec_exp);
min 219 common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
min 226 common/strtol.c return min;
min 230 common/strtol.c return (sgn ? min : max);
min 66 kernel/arch/amd64/src/mm/page.c for (cur = 0; cur < min(config.identity_size, config.physmem_end);
min 64 kernel/arch/arm32/src/mm/page.c cur < min(KA2PA(config.identity_base) +
min 76 kernel/arch/arm64/src/arm64.c memmap.cnt = min(bootinfo->memmap.cnt, MEMMAP_MAX_RECORDS);
min 69 kernel/arch/ia32/src/mm/page.c for (cur = 0; cur < min(config.identity_size, config.physmem_end);
min 94 kernel/arch/ppc32/src/ppc32.c memmap.cnt = min(bootinfo->memmap.cnt, MEMMAP_MAX_RECORDS);
min 61 kernel/arch/riscv64/src/mm/page.c cur < min(config.identity_size, config.physmem_end);
min 87 kernel/arch/riscv64/src/riscv64.c memmap.cnt = min(bootinfo->memmap.cnt, MEMMAP_MAX_RECORDS);
min 86 kernel/arch/sparc64/src/sun4u/sparc64.c memmap.cnt = min(bootinfo->memmap.cnt, MEMMAP_MAX_RECORDS);
min 88 kernel/arch/sparc64/src/sun4v/sparc64.c memmap.cnt = min(bootinfo->memmap.cnt, MEMMAP_MAX_RECORDS);
min 123 kernel/generic/common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 177 kernel/generic/common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 724 kernel/generic/common/printf/printf_core.c int signif_frac_figs = min(last_frac_signif_pos, len);
min 768 kernel/generic/common/printf/printf_core.c int buf_int_len = min(len, len + dec_exp);
min 219 kernel/generic/common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
min 226 kernel/generic/common/strtol.c return min;
min 230 kernel/generic/common/strtol.c return (sgn ? min : max);
min 115 kernel/generic/include/macros.h #define min3(a, b, c) ((a) < (b) ? (min(a, c)) : (min(b, c)))
min 958 kernel/generic/src/mm/frame.c mem_avail_req = min(mem_avail_req, count);
min 1037 kernel/generic/src/mm/frame.c mem_avail_req -= min(mem_avail_req, freed);
min 158 kernel/generic/src/mm/malloc.c memcpy(new_ptr, old_ptr, min(old_size, new_size));
min 892 kernel/generic/src/sysinfo/sysinfo.c size_t size = min(ret.data.size, buffer_size);
min 1050 kernel/generic/src/sysinfo/sysinfo.c size_t size = min(ret.data.size, buffer_size);
min 203 uspace/app/bdsh/cmds/modules/mkfile/mkfile.c to_write = min(file_size - total_written, BUFFER_SIZE);
min 1328 uspace/app/edit/edit.c rows = min(sh_rows - pane->sh_row + 1, pane->rows);
min 597 uspace/app/mkexfat/mkexfat.c table_ptr += min(table_size, cfg->sector_size),
min 607 uspace/app/mkexfat/mkexfat.c memcpy(buf, table_ptr, min(table_size, cfg->sector_size));
min 78 uspace/app/netecho/comm.c now = min(size - pos, RECV_BUF_SIZE);
min 308 uspace/app/taskdump/elf_core.c to_copy = min(area->size - total, BUFFER_SIZE);
min 735 uspace/app/terminal/terminal.c c1 = min(c1, term->ucols);
min 736 uspace/app/terminal/terminal.c c1 = min(c1, (sysarg_t) termui_get_cols(term->termui));
min 737 uspace/app/terminal/terminal.c r1 = min(r1, term->urows);
min 738 uspace/app/terminal/terminal.c r1 = min(r1, (sysarg_t) termui_get_rows(term->termui));
min 457 uspace/app/top/screen.c size_t num = min(table->num_columns, rows - row);
min 269 uspace/app/wavplay/dplay.c min(available, buffer_remain(pb)), pb->source);
min 279 uspace/app/wavplay/dplay.c sizeof(uint8_t), min(available, buffer_remain(pb)),
min 644 uspace/dist/src/c/demos/edit/edit.c max_len = min(INFNAME_MAX_LEN, scr_columns - 4 - str_length(prompt));
min 806 uspace/dist/src/c/demos/edit/edit.c rows = min(sh_rows - pane.sh_row + 1, pane.rows);
min 459 uspace/dist/src/c/demos/top/screen.c size_t num = min(table->num_columns, rows - row);
min 403 uspace/drv/audio/hdaudio/hdactl.c now = min(avail, count - idx);
min 783 uspace/drv/block/pc-floppy/pc-floppy.c csize = min(fdc->dma_buf_size, buf_size);
min 813 uspace/drv/block/pc-floppy/pc-floppy.c csize = min(fdc->dma_buf_size, buf_size);
min 243 uspace/drv/block/usbmast/scsi_ms.c cdb.alloc_len = min(size, SCSI_SENSE_DATA_MAX_SIZE);
min 183 uspace/drv/bus/pci/pciintel/ctl.c min(size, sizeof(info)));
min 293 uspace/drv/bus/usb/ehci/ehci_batch.c const size_t transfer_size = min(remain_size, EHCI_TD_MAX_TRANSFER);
min 106 uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.c const size_t this_size = min(size, 4096 - offset);
min 299 uspace/drv/bus/usb/ohci/ohci_batch.c min(remain_size, OHCI_TD_MAX_TRANSFER);
min 235 uspace/drv/bus/usb/uhci/uhci_batch.c const size_t packet_size = min(remain_size, mps);
min 304 uspace/drv/bus/usb/uhci/uhci_batch.c const size_t packet_size = min(remain_size, mps);
min 244 uspace/drv/bus/usb/xhci/isoch.c const uint64_t delay = min(isoch->buffer_count * ep->interval, 10 * 8);
min 155 uspace/drv/bus/usb/xhci/transfers.c size_t size = min(ts->remaining, ts->chunk_size);
min 160 uspace/drv/bus/usb/xhci/transfers.c size = min(size, ts->chunk_size - offset);
min 167 uspace/drv/bus/usb/xhci/transfers.c const unsigned td_size = min(31, ts->packet_count - tx_packets);
min 784 uspace/drv/nic/ar9271/ar9271.c size_t chunk_size = min(remain_size, MAX_TRANSFER_SIZE);
min 664 uspace/lib/ata/src/ata.c nb = min(maxnb, cnt);
min 712 uspace/lib/ata/src/ata.c nb = min(maxnb, cnt);
min 1190 uspace/lib/ata/src/ata.c cp->alloc_len = host2uint16_t_be(min(obuf_size, 0xff));
min 135 uspace/lib/bithenge/src/blob.c *size = min(*size, blob->data_size - end);
min 212 uspace/lib/bithenge/src/blob.c *size = min(*size, blob->size - offset);
min 331 uspace/lib/bithenge/src/blob.c *size = min(*size, blob->size - offset);
min 344 uspace/lib/bithenge/src/blob.c *size = min(*size, blob->size - offset);
min 77 uspace/lib/bithenge/src/helenos/block.c *size = min(*size, self->size - offset);
min 293 uspace/lib/bithenge/src/transform.c size_t size = min((size_t)(end - format),
min 702 uspace/lib/bithenge/src/transform.c *size = min(*size, bytes_size * 8 - bit_offset);
min 123 uspace/lib/c/common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 177 uspace/lib/c/common/adt/bitmap.c size_t lub = min(aligned_start - start, count);
min 724 uspace/lib/c/common/printf/printf_core.c int signif_frac_figs = min(last_frac_signif_pos, len);
min 768 uspace/lib/c/common/printf/printf_core.c int buf_int_len = min(len, len + dec_exp);
min 219 uspace/lib/c/common/strtol.c intmax_t min, intmax_t max, errno_t *err, bool nonstd)
min 226 uspace/lib/c/common/strtol.c return min;
min 230 uspace/lib/c/common/strtol.c return (sgn ? min : max);
min 80 uspace/lib/c/generic/io/kio.c size_t sz = min(KIO_BUFFER_SIZE - used, (size_t) (endl - s));
min 91 uspace/lib/c/generic/io/kio.c size_t sz = min(KIO_BUFFER_SIZE - used, size);
min 300 uspace/lib/c/generic/time.c time_t min = tm->tm_min;
min 309 uspace/lib/c/generic/time.c min += floor_div(sec, SECS_PER_MIN);
min 311 uspace/lib/c/generic/time.c hour += floor_div(min, MINS_PER_HOUR);
min 312 uspace/lib/c/generic/time.c min = floor_mod(min, MINS_PER_HOUR);
min 359 uspace/lib/c/generic/time.c tm->tm_min = (int) min;
min 255 uspace/lib/clui/src/tinput.c size_t ilen = min(str_length(str), INPUT_MAX_SIZE - ti->nc);
min 743 uspace/lib/clui/src/tinput.c cplen = min(cplen, common_pref_len(compl[0], compl[i]));
min 921 uspace/lib/clui/src/tinput.c ti->nc = min(ti->nc, ti->con_cols * ti->con_rows - prompt_len - 1);
min 922 uspace/lib/clui/src/tinput.c ti->pos = min(ti->pos, ti->nc);
min 923 uspace/lib/clui/src/tinput.c ti->sel_start = min(ti->sel_start, ti->nc);
min 1169 uspace/lib/cpp/include/__bits/adt/deque.hpp auto min_size = min(lhs.size(), rhs.size());
min 529 uspace/lib/cpp/include/__bits/adt/vector.hpp auto to_copy = min(size, size_);
min 612 uspace/lib/cpp/include/__bits/adt/vector.hpp auto min_size = min(lhs.size(), rhs.size());
min 183 uspace/lib/cpp/include/__bits/chrono.hpp return duration{duration_values<rep>::min()};
min 259 uspace/lib/cpp/include/__bits/chrono.hpp return time_point{duration::min()};
min 186 uspace/lib/cpp/include/__bits/io/istream.hpp if (tmp < numeric_limits<short>::min())
min 189 uspace/lib/cpp/include/__bits/io/istream.hpp x = numeric_limits<short>::min();
min 235 uspace/lib/cpp/include/__bits/io/istream.hpp if (tmp < numeric_limits<int>::min())
min 238 uspace/lib/cpp/include/__bits/io/istream.hpp x = numeric_limits<int>::min();
min 245 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 367 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 391 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 415 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 439 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 463 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 487 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 511 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 535 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 559 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 583 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 607 uspace/lib/cpp/include/__bits/limits.hpp return min();
min 322 uspace/lib/cpp/include/__bits/locale/num_get.hpp else if (res < static_cast<BaseType>(numeric_limits<T>::min()))
min 325 uspace/lib/cpp/include/__bits/locale/num_get.hpp v = numeric_limits<T>::min();
min 641 uspace/lib/cpp/include/__bits/random.hpp return Engine::min();
min 881 uspace/lib/cpp/include/__bits/random.hpp return Engine::min();
min 1011 uspace/lib/cpp/include/__bits/random.hpp return numeric_limits<result_type>::min();
min 1154 uspace/lib/cpp/include/__bits/random.hpp RealType r = g.max() - g.min() + 1;
min 1160 uspace/lib/cpp/include/__bits/random.hpp s += (g() - g.min()) * aux::pow(r, i);
min 506 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, other.size() - pos);
min 834 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, str.size() - pos);
min 897 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, str.size() - pos);
min 950 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, str.size() - pos2);
min 1033 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, size_ - pos);
min 1074 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n2, str.size() - pos2);
min 1083 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n1, size_ - pos);
min 1152 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n , size_ - pos);
min 1256 uspace/lib/cpp/include/__bits/string/string.hpp size_type idx{min(pos, size_ - 1) + 1};
min 1278 uspace/lib/cpp/include/__bits/string/string.hpp for (size_type i = min(pos + 1, size_ - 1) + 1; i > 0; --i)
min 1329 uspace/lib/cpp/include/__bits/string/string.hpp for (size_type i = min(pos, size_ - 1) + 1; i > 0; --i)
min 1399 uspace/lib/cpp/include/__bits/string/string.hpp for (size_type i = min(pos, size_ - 1) + 1; i > 0; --i)
min 1418 uspace/lib/cpp/include/__bits/string/string.hpp pos = min(pos, size_ - 1);
min 1420 uspace/lib/cpp/include/__bits/string/string.hpp for (size_type i = min(pos, size_ - 1) + 1; i > 1; --i)
min 1432 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(n, size_ - pos);
min 1438 uspace/lib/cpp/include/__bits/string/string.hpp auto len = min(size(), other.size());
min 1544 uspace/lib/cpp/include/__bits/string/string.hpp auto to_copy = min(size, size_);
min 275 uspace/lib/ext4/src/balloc.c i < min(total_groups, bg_ref->index + flex_group_size); ++i) {
min 1211 uspace/lib/ext4/src/ops.c uint32_t bytes = min(block_size - offset_in_block, size);
min 1306 uspace/lib/ext4/src/ops.c uint32_t bytes = min(len, block_size - (pos % block_size));
min 1570 uspace/lib/ext4/src/superblock.c inodes_group = min((fs_blocks - first_block) / 8,
min 99 uspace/lib/gfx/src/coord.c t.x = min(a->x, clip->p1.x - 1);
min 100 uspace/lib/gfx/src/coord.c t.y = min(a->y, clip->p1.y - 1);
min 206 uspace/lib/gfx/src/coord.c dest->p0.x = min(sa.p0.x, sb.p0.x);
min 207 uspace/lib/gfx/src/coord.c dest->p0.y = min(sa.p0.y, sb.p0.y);
min 234 uspace/lib/gfx/src/coord.c dest->p0.x = min(max(srect.p0.x, sclip.p0.x), sclip.p1.x);
min 235 uspace/lib/gfx/src/coord.c dest->p0.y = min(max(srect.p0.y, sclip.p0.y), sclip.p1.y);
min 236 uspace/lib/gfx/src/coord.c dest->p1.x = max(sclip.p0.x, min(srect.p1.x, sclip.p1.x));
min 237 uspace/lib/gfx/src/coord.c dest->p1.y = max(sclip.p0.y, min(srect.p1.y, sclip.p1.y));
min 190 uspace/lib/gfxfont/src/glyph_bmp.c gfx_coord2_t min;
min 195 uspace/lib/gfxfont/src/glyph_bmp.c min.x = bmp->rect.p1.x;
min 196 uspace/lib/gfxfont/src/glyph_bmp.c min.y = bmp->rect.p1.y;
min 206 uspace/lib/gfxfont/src/glyph_bmp.c if (x < min.x)
min 207 uspace/lib/gfxfont/src/glyph_bmp.c min.x = x;
min 208 uspace/lib/gfxfont/src/glyph_bmp.c if (y < min.y)
min 209 uspace/lib/gfxfont/src/glyph_bmp.c min.y = y;
min 219 uspace/lib/gfxfont/src/glyph_bmp.c rect->p0.x = min.x;
min 220 uspace/lib/gfxfont/src/glyph_bmp.c rect->p0.y = min.y;
min 155 uspace/lib/http/src/receive-buffer.c min_mark = min(min_mark, mark->offset);
min 189 uspace/lib/http/src/receive-buffer.c size_t size = min(rb->in - rb->out, buf_size);
min 402 uspace/lib/ieee80211/src/ieee80211_impl.c uint8_t *min = min_sequence(seq1, seq2, size);
min 403 uspace/lib/ieee80211/src/ieee80211_impl.c if (min == seq1)
min 536 uspace/lib/riff/src/chunk.c toread = min(bytes, (size_t)(ckend - pos));
min 181 uspace/lib/riff/src/rwave.c now = min(bytes, ww->bufsize);
min 199 uspace/lib/termui/src/history.c len = min(len, cells->max_len - cells->head_top);
min 202 uspace/lib/termui/src/history.c min(cells->head_top + len, SIZE_MAX / sizeof(termui_cell_t));
min 235 uspace/lib/termui/src/history.c len = min(len, lines->max_len - lines->buf_len);
min 237 uspace/lib/termui/src/history.c size_t new_len = min(lines->buf_len + len, SIZE_MAX - sizeof(struct history_line));
min 729 uspace/lib/trackmod/trackmod.c np = min((int)chan->period_tgt, (int)chan->period + chan->portamento);
min 993 uspace/lib/trackmod/trackmod.c now = min(rsmp, nsamples);
min 325 uspace/lib/ui/src/entry.c off1 = min(entry->pos, entry->sel_start);
min 462 uspace/lib/ui/src/entry.c off1 = min(entry->sel_start, entry->pos);
min 586 uspace/lib/ui/src/entry.c off1 = min(entry->pos, entry->sel_start);
min 227 uspace/lib/usbhid/src/hidparser.c const int lsb_bits = min((unsigned)bits, 8 - bit_offset);
min 278 uspace/srv/audio/hound/audio_data.c const size_t copy_frames = min(available_frames, needed_frames);
min 437 uspace/srv/audio/hound/hound_ctx.c available_frames = min(available_frames,
min 125 uspace/srv/bd/rd/rd.c memcpy(buf, rd_addr + ba * block_size, min(block_size * cnt, size));
min 141 uspace/srv/bd/rd/rd.c memcpy(rd_addr + ba * block_size, buf, min(block_size * cnt, size));
min 153 uspace/srv/bd/vbd/vbd.c min(size, sizeof(dinfo)));
min 257 uspace/srv/bd/vbd/vbd.c min(size, sizeof(pinfo)));
min 97 uspace/srv/fs/cdfs/cdfs_ops.c uint8_t min[2];
min 110 uspace/srv/fs/cdfs/cdfs_ops.c uint8_t min;
min 1291 uspace/srv/fs/cdfs/cdfs_ops.c *rbytes = min(len, BLOCK_SIZE - offset);
min 1292 uspace/srv/fs/cdfs/cdfs_ops.c *rbytes = min(*rbytes, node->size - pos);
min 1360 uspace/srv/fs/exfat/exfat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
min 1361 uspace/srv/fs/exfat/exfat_ops.c bytes = min(bytes, nodep->size - pos);
min 1500 uspace/srv/fs/exfat/exfat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
min 272 uspace/srv/fs/fat/fat_fat.c memset(b->data, 0, min(BPS(bs), pos - o));
min 1249 uspace/srv/fs/fat/fat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
min 1250 uspace/srv/fs/fat/fat_ops.c bytes = min(bytes, nodep->size - pos);
min 1357 uspace/srv/fs/fat/fat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
min 887 uspace/srv/fs/mfs/mfs_ops.c bytes = min(len, sbi->block_size - pos % sbi->block_size);
min 888 uspace/srv/fs/mfs/mfs_ops.c bytes = min(bytes, ino_i->i_size - pos);
min 960 uspace/srv/fs/mfs/mfs_ops.c size_t bytes = min(len, bs - (pos % bs));
min 494 uspace/srv/fs/tmpfs/tmpfs_ops.c bytes = min(nodep->size - pos, size);
min 282 uspace/srv/fs/udf/udf_osta.c ucode_chars = min(ucode_chars, utf16_wsize(raw_name));
min 64 uspace/srv/fs/udf/udf_types.h uint8_t min;
min 1013 uspace/srv/hid/display/window.c nrect->p0.y = min(wnd->rect.p0.y + dresize->y,
min 1020 uspace/srv/hid/display/window.c nrect->p0.x = min(wnd->rect.p0.x + dresize->x,
min 127 uspace/srv/hid/output/output.c cols = min(cols, dev->cols);
min 128 uspace/srv/hid/output/output.c rows = min(rows, dev->rows);
min 479 uspace/srv/hid/remcons/user.c now = min(remain, size);
min 602 uspace/srv/locsrv/locsrv.c min(size, act_size));
min 650 uspace/srv/locsrv/locsrv.c min(size, act_size));
min 697 uspace/srv/locsrv/locsrv.c min(size, act_size));
min 180 uspace/srv/net/dnsrsrv/dns_msg.c bsize = min(pdu->size - boff, DNS_NAME_MAX_SIZE);
min 414 uspace/srv/net/inetsrv/inetcfg.c min(size, str_size(ainfo.name)));
min 476 uspace/srv/net/inetsrv/inetcfg.c size = min(act_size, max_size);
min 510 uspace/srv/net/inetsrv/inetcfg.c size = min(act_size, max_size);
min 544 uspace/srv/net/inetsrv/inetcfg.c size = min(act_size, max_size);
min 603 uspace/srv/net/inetsrv/inetcfg.c min(name_max_size, str_size(linfo.name)));
min 612 uspace/srv/net/inetsrv/inetcfg.c min(laddr_max_size, sizeof(linfo.mac_addr)));
min 770 uspace/srv/net/inetsrv/inetcfg.c min(size, str_size(srinfo.name)));
min 131 uspace/srv/net/inetsrv/pdu.c size_t xfer_size = min(packet->size - offs, spc_avail);
min 240 uspace/srv/net/inetsrv/pdu.c size_t xfer_size = min(packet->size - offs, spc_avail);
min 345 uspace/srv/net/inetsrv/reass.c ce = min(dgram_size, cfrag->packet.offs + cfrag->packet.size);
min 1060 uspace/srv/net/tcp/conn.c xfer_size = min(text_size, conn->rcv_buf_size - conn->rcv_buf_used);
min 1025 uspace/srv/net/tcp/service.c size = min(size, 16384);
min 1081 uspace/srv/net/tcp/service.c size = min(size, 16384);
min 196 uspace/srv/net/tcp/tqueue.c xfer_seqlen = min(snd_buf_seqlen, avail_wnd);
min 162 uspace/srv/net/tcp/ucall.c xfer_size = min(size, buf_free);
min 219 uspace/srv/net/tcp/ucall.c xfer_size = min(size, conn->rcv_buf_used);
min 523 uspace/srv/net/udp/service.c rc = async_data_read_finalize(&call, data, min(msg_size - off, size));
min 116 uspace/srv/vfs/vfs_lookup.c size_t cnt1 = min(len, (PLB_SIZE - first) + 1);
min 133 uspace/srv/vfs/vfs_lookup.c size_t cnt1 = min(len, (PLB_SIZE - first) + 1);
min 192 uspace/srv/volsrv/volsrv.c min(size, sizeof(pinfo)));
min 347 uspace/srv/volsrv/volsrv.c min(size, sizeof(vlsupp)));
min 538 uspace/srv/volsrv/volsrv.c min(size, sizeof(vinfo)));
HelenOS homepage, sources at GitHub