Searched refs:nb (Results 1 - 25 of 45) sorted by relevance

12

/haiku-fatelf/src/bin/bash/lib/sh/
H A Dzwrite.c39 zwrite (fd, buf, nb)
42 size_t nb;
46 for (n = nb, nt = 0;;)
53 return nb;
59 return (nb - n);
/haiku-fatelf/src/add-ons/translators/webp/libwebp/enc/
H A Dcost.h29 // Cost of coding 'nb' 1's and 'total-nb' 0's using 'proba' probability.
30 static inline uint64_t VP8BranchCost(uint64_t nb, uint64_t total, uint8_t proba) { argument
31 return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba);
H A Danalysis.c161 const int nb = enc->segment_hdr_.num_segments_; local
165 if (nb > 1) {
166 for (n = 0; n < nb; ++n) {
173 for (n = 0; n < nb; ++n) {
185 const int nb = enc->segment_hdr_.num_segments_; local
202 for (n = 1, k = 0; n < 2 * nb; n += 2) {
203 centers[k++] = min_a + (n * range_a) / (2 * nb);
210 for (n = 0; n < nb; ++n) {
218 while (n < nb - 1 && abs(a - centers[n + 1]) < abs(a - centers[n])) {
232 for (n = 0; n < nb;
[all...]
H A Dframe.c68 static int CalcSkipProba(uint64_t nb, uint64_t total) { argument
69 return (int)(total ? (total - nb) * 255 / total : 255);
142 static int CalcTokenProba(uint64_t nb, uint64_t total) { argument
143 return (int)(nb ? ((total - nb) * 255 + total / 2) / total : 255);
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-netbios.c49 netbios_print(struct p8022Hdr *nb, u_int length) argument
56 if (nb->flags == UI) {
62 if ((u_char *)(nb + 1) > snapend) {
68 netbios_decode(nb, (u_char *)nb + p8022Size, length - p8022Size);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_broadcast/
H A D2-3.c80 for (_nch=0; _nch<children.nb; _nch++) \
89 for (_nch=0; _nch<children.nb; _nch++) \
188 int nb; member in struct:__anon5957
455 for (children.nb=0; children.nb<NCHILDREN; children.nb++)
459 ret = pthread_create(&(children.ch[children.nb].t), &ta, child, NULL);
464 children.ch[children.nb].p=fork();
465 if (children.ch[children.nb].p == 0) /* We are the child */
470 if (children.ch[children.nb]
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dh2util.cpp33 err = nb->direct_access(nbuf, 0, nbuf->size, &conPointer);
43 err = nb->write(nbuf, 0, (void*) nbuf->COOKIEFIELD, nbuf->size);
72 if (nb != NULL)
73 nb->free(nbuf);
H A Dh2generic.h49 extern struct net_buffer_module_info* nb;
/haiku-fatelf/src/bin/sharutils/intl/
H A Dloadmsgcat.c129 long int nb = (long int) read (fd, read_ptr, to_read); local
130 if (nb == -1)
136 read_ptr += nb;
137 to_read -= nb;
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dalloc_ttype.c54 merge_names(char **dst, char **a, int na, char **b, int nb) argument
57 while (na > 0 && nb > 0) {
64 nb--;
68 na--, nb--;
74 while (nb-- > 0) {
379 int nb = NUM_EXT_NAMES(from); local
386 nb, from->term_names));
388 if (na != 0 || nb != 0) {
389 if ((na == nb) /* check if the arrays are equivalent */
408 ext_Names = typeMalloc(char *, na + nb);
[all...]
/haiku-fatelf/headers/libs/agg/
H A Dagg_glyph_raster_bin.h110 unsigned nb = 0; local
115 if(++nb >= 8)
118 nb = 0;
H A Dagg_array.h499 const T* block(unsigned nb) const { return m_blocks[nb]; }
502 void allocate_block(unsigned nb);
535 unsigned nb = (size + block_mask) >> block_shift; local
536 while(m_num_blocks > nb)
615 void pod_bvector<T, S>::allocate_block(unsigned nb) argument
617 if(nb >= m_max_blocks)
632 m_blocks[nb] = pod_allocator<T>::allocate(block_size);
642 unsigned nb = m_size >> block_shift; local
643 if(nb >
[all...]
H A Dagg_path_storage.h72 void allocate_block(unsigned nb);
283 unsigned nb = idx >> block_shift; local
284 const T* pv = m_coord_blocks[nb] + ((idx & block_mask) << 1);
287 return m_cmd_blocks[nb][idx & block_mask];
299 void vertex_block_storage<T,S,P>::allocate_block(unsigned nb) argument
301 if(nb >= m_max_blocks)
325 m_coord_blocks[nb] =
329 m_cmd_blocks[nb] =
330 (unsigned char*)(m_coord_blocks[nb] + block_size * 2);
339 unsigned nb local
[all...]
H A Dagg_rasterizer_cells_aa.h658 unsigned nb = m_num_cells >> cell_block_shift; local
660 while(nb--)
690 nb = m_num_cells >> cell_block_shift;
691 while(nb--)
/haiku-fatelf/src/add-ons/media/media-add-ons/firewire_dv/
H A DFireWireCard.cpp281 int npad, k, m, system = -1, nb; local
310 nb = nblocks[system];
313 if (m > 0 && m != nb) {
315 npad = ((nb - m) % nb);
317 npad += nb;
/haiku-fatelf/src/bin/fwcontrol/
H A Dfwdv.c113 int len, tlen, npad, fd, k, m, vec, system = -1, nb; local
213 nb = nblocks[system];
221 if (m > 0 && m != nb) {
223 npad = ((nb - m) % nb);
225 npad += nb;
/haiku-fatelf/src/kits/shared/
H A DColorQuantizer.cpp123 uint32 nb = 0; local
129 nb += tmpPalette[k].b * sums[k];
135 table[j].b = clip((float)nb / ns);
/haiku-fatelf/src/libs/mapm/
H A Dmapmfmul.c603 int k, jtmp, sflag, nb, borrow; local
605 nb = sz;
613 for (k=0; k < nb; k++)
630 memset(r, 0, nb); /* zero out the result */
634 k = nb;
/haiku-fatelf/src/bin/unzip/
H A Dcrypt.c352 unsigned zfwrite(buf, item_size, nb, f)
355 extent nb; /* number of items */
365 for (size = item_size*(ulg)nb; size != 0; p++, size--) {
370 return fwrite(buf, item_size, nb, f);
H A Dcryptf.c355 unsigned zfwrite(buf, item_size, nb, f)
358 extent nb; /* number of items */
368 for (size = item_size*(ulg)nb; size != 0; p++, size--) {
373 return fwrite(buf, item_size, nb, f);
/haiku-fatelf/src/bin/zip/
H A Dcrypt.c367 unsigned zfwrite(buf, item_size, nb, f)
370 extent nb; /* number of items */
380 for (size = item_size*(ulg)nb; size != 0; p++, size--) {
385 return fwrite(buf, item_size, nb, f);
/haiku-fatelf/src/libs/tiff/
H A Dtif_ojpeg.c1360 uint8* nb; local
1383 nb=_TIFFmalloc(na);
1384 if (nb==0)
1389 *(uint32*)nb=na;
1390 nb[sizeof(uint32)]=255;
1391 nb[sizeof(uint32)+1]=JPEG_MARKER_DQT;
1392 nb[sizeof(uint32)+2]=0;
1393 nb[sizeof(uint32)+3]=67;
1394 if (OJPEGReadBlock(sp,65,&nb[sizeof(uint32)+4])==0)
1396 o=nb[sizeo
1420 uint8* nb; local
[all...]
/haiku-fatelf/src/tools/docbook/libxslt/libxslt/
H A Dxsltutils.c1846 int nb, i,j; local
1859 nb = 0;
1869 if (nb >= max)
1873 templates[nb++] = template;
1880 for (i = 0;i < nb -1;i++) {
1881 for (j = i + 1; j < nb; j++) {
1896 for (i = 0;i < nb;i++) {
1970 int nb = 0, max = 0, i, j; local
1978 nb = 0;
1992 if (nb >
[all...]
/haiku-fatelf/src/system/libroot/posix/malloc/
H A Dheap.h425 int nb = max_c(1, ((SUPERBLOCK_SIZE - sizeof(superblock)) / blksize)); local
426 return nb;
/haiku-fatelf/src/bin/bash/lib/intl/
H A Dloadmsgcat.c987 long int nb = (long int) read (fd, read_ptr, to_read); local
988 if (nb <= 0)
991 if (nb == -1 && errno == EINTR)
997 read_ptr += nb;
998 to_read -= nb;

Completed in 253 milliseconds

12