Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/third_party/boost/libs/math/example/
Dnegative_binomial_example1.cpp115 negative_binomial nb(sales_quota, success_fraction); // type double by default. in main() local
120 << ".\nTherefore he would, on average, sell " << nb.success_fraction() * 100 in main()
125 cout << "With a success rate of " << nb.success_fraction() in main()
128 << " houses in order to sell all " << nb.successes() << " bars. " << endl; in main()
146 << pdf(nb, 5 - sales_quota) << endl; // == pdf(nb, 0) in main()
156 << pdf(nb, 6 - sales_quota) << endl; in main()
158 << pdf(nb, 7 - sales_quota) << endl; in main()
160 << pdf(nb, 8 - sales_quota) << endl; in main()
174 << pdf(nb, 5 - sales_quota) // 0 failures. in main()
175 + pdf(nb, 6 - sales_quota) // 1 failure. in main()
[all …]
/third_party/ltp/testcases/kernel/fs/doio/
Dpattern.c42 int nb, ncmp, nleft; in pattern_check() local
58 nb = patlen - patshift; in pattern_check()
59 if (nleft < nb) { in pattern_check()
62 if (memcmp(cp, pat + patshift, nb)) in pattern_check()
65 nleft -= nb; in pattern_check()
66 cp += nb; in pattern_check()
70 nb = patshift; in pattern_check()
71 if (nleft < nb) { in pattern_check()
74 if (memcmp(cp, pat, nb)) in pattern_check()
77 nleft -= nb; in pattern_check()
[all …]
/third_party/ltp/testcases/kernel/input/
Dinput01.c35 static int verify_data(struct input_event *iev, int nb);
90 int nb; in send_events() local
92 for (nb = 0; nb < NB_TEST; ++nb) { in send_events()
100 int nb, rd; in check_events() local
104 nb = 0; in check_events()
106 while (nb < NB_TEST * 3) { in check_events()
118 if (verify_data(&iev[i], nb++)) in check_events()
126 static int verify_data(struct input_event *iev, int nb) in verify_data() argument
128 if (nb % 3 == 0) { in verify_data()
132 nb, iev->type, EV_REL); in verify_data()
[all …]
Dinput03.c95 int nb; in send_events() local
97 for (nb = 0; nb < NB_TEST; ++nb) { in send_events()
109 int nb, rd, i, pressed = 0; in check_events() local
112 nb = 0; in check_events()
114 while (nb < NB_TEST) { in check_events()
131 nb++; in check_events()
136 return nb != NB_TEST; in check_events()
/third_party/node/deps/npm/node_modules/are-we-there-yet/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/parallel-transform/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/from2/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/duplexify/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/stream-iterate/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/flush-write-stream/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/through2/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/node/deps/npm/node_modules/concat-stream/node_modules/string_decoder/lib/
Dstring_decoder.js81 var nb;
86 nb = 4;
90 nb = 4;
95 nb = 3;
104 this.lastChar = Buffer.allocUnsafe(nb);
151 var nb = utf8CheckByte(buf[j]);
152 if (nb >= 0) {
153 if (nb > 0) self.lastNeed = nb - 1;
154 return nb;
156 if (--j < i || nb === -2) return 0;
[all …]
/third_party/boost/libs/numeric/ublas/test/tensor/
Dtest_multiplication.cpp75 auto nb = extents_type {na[m],1}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
76 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
77 auto b = vector_type (nb.product(), value_type{1} ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
123 auto nb = extents_type {na[1],na[0]}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
124 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
125 auto b = vector_type (nb.product(), value_type{1} ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
127 auto nc = extents_type {na[0],nb[1]}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
135 b.data(), nb.data(), wb.data()); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
164 auto nb = extents_type {na[m],1}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
165 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Djdhuff.h198 register int nb, look; \
204 nb = 1; goto slowlabel; \
208 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \
209 DROP_BITS(nb); \
214 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \
220 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument
224 nb = s >> HUFF_LOOKAHEAD; \
226 DROP_BITS(nb); \
228 if (nb > HUFF_LOOKAHEAD) { \
231 s = (get_buffer >> bits_left) & ((1 << (nb)) - 1); \
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djdhuff.h192 register int nb, look; \
198 nb = 1; goto slowlabel; \
202 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \
203 DROP_BITS(nb); \
208 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \
214 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument
218 nb = s >> HUFF_LOOKAHEAD; \
220 DROP_BITS(nb); \
222 if (nb > HUFF_LOOKAHEAD) { \
225 s = (get_buffer >> bits_left) & ((1 << (nb)) - 1); \
[all …]
/third_party/lwip/src/netif/ppp/
Dpppos.c75 static err_t pppos_output_append(pppos_pcb *pppos, err_t err, struct pbuf *nb, u8_t c, u8_t accm, u…
76 static err_t pppos_output_last(pppos_pcb *pppos, err_t err, struct pbuf *nb, u16_t *fcs);
204 struct pbuf *nb; in pppos_write() local
213 nb = pbuf_alloc(PBUF_RAW, 0, PBUF_POOL); in pppos_write()
214 if (nb == NULL) { in pppos_write()
224 nb->tot_len = p->len; in pppos_write()
230 err = pppos_output_append(pppos, err, nb, PPP_FLAG, 0, NULL); in pppos_write()
238 err = pppos_output_append(pppos, err, nb, *s++, 1, &fcs_out); in pppos_write()
241 err = pppos_output_last(pppos, err, nb, &fcs_out); in pppos_write()
256 struct pbuf *nb, *p; in pppos_netif_output() local
[all …]
/third_party/boost/boost/numeric/ublas/tensor/
Dmultiplication.hpp58 PointerIn2 b, SizeType const*const nb, SizeType const*const wb) in ttt() argument
64 ttt(k+1, r, s, q, phia,phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt()
68 assert(nc[k] == nb[phib[k-r]-1]); in ttt()
70 ttt(k+1, r, s, q, phia, phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt()
74 assert(na[phia[k-s]-1] == nb[phib[k-r]-1]); in ttt()
76 ttt(k+1, r, s, q, phia, phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt()
80 assert(na[phia[k-s]-1] == nb[phib[k-r]-1]); in ttt()
121 PointerIn2 b, SizeType const*const nb, SizeType const*const wb) in ttt() argument
127 ttt(k+1, r, s, q, c, nc, wc, a, na, wa, b, nb, wb); in ttt()
131 assert(nc[k] == nb[k-r]); in ttt()
[all …]
/third_party/flutter/skia/third_party/externals/wuffs/lang/check/
Dassert.go111 func (z facts) refine(n *a.Expr, nb bounds, tm *t.Map) (bounds, error) {
112 if nb[0] == nil || nb[1] == nil {
113 return nb, nil
126 originalNB, changed := nb, false
129 if nb[0].Cmp(cv) == 0 {
130 nb[0] = add1(nb[0])
132 } else if nb[1].Cmp(cv) == 0 {
133 nb[1] = sub1(nb[1])
137 if nb[1].Cmp(cv) >= 0 {
138 nb[1] = sub1(cv)
[all …]
/third_party/python/Lib/tkinter/test/test_ttk/
Dtest_widgets.py912 self.nb = self.create(padding=0)
915 self.nb.add(self.child1, text='a')
916 self.nb.add(self.child2, text='b')
922 self.nb.forget(0)
923 self.nb.hide(self.child2)
924 self.assertRaises(tkinter.TclError, self.nb.tab, self.child1)
925 self.assertEqual(self.nb.index('end'), 1)
926 self.nb.add(self.child2)
927 self.assertEqual(self.nb.index('end'), 1)
928 self.nb.select(self.child2)
[all …]
/third_party/boringssl/src/crypto/fipsmodule/bn/asm/
Dco-586.pl29 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
46 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # laod next b
47 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # laod next b
57 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
76 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb);
86 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
112 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb);
170 $nb=($bi+1);
175 $nb=$bs+($i >= ($num-1));
178 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb);
[all …]
/third_party/openssl/crypto/bn/asm/
Dco-586.pl29 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
46 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # load next b
47 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # load next b
57 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
76 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb);
86 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
112 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb);
170 $nb=($bi+1);
175 $nb=$bs+($i >= ($num-1));
178 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb);
[all …]
/third_party/glib/tests/
Dgio-test.c69 gsize nb; in read_all() local
79 error = g_io_channel_read (channel, bufp, left, &nb); in read_all()
88 if (nb == 0) in read_all()
90 left -= nb; in read_all()
91 bufp += nb; in read_all()
92 *bytes_read += nb; in read_all()
132 guint nb; in recv_message() local
136 error = read_all (fd, channel, (gchar *) &seq, sizeof (seq), &nb); in recv_message()
139 if (nb == 0) in recv_message()
146 g_assert (nb == sizeof (nbytes)); in recv_message()
[all …]
/third_party/popt/src/
Dpoptconfig.c130 off_t nb = 0; in poptReadFile() local
138 if ((nb = lseek(fdno, 0, SEEK_END)) == (off_t)-1 in poptReadFile()
140 || (b = calloc(sizeof(*b), (size_t)nb + 1)) == NULL in poptReadFile()
141 || read(fdno, (char *)b, (size_t)nb) != (ssize_t)nb) in poptReadFile()
159 for (t = b, s = b, se = b + nb; *s && s < se; s++) { in poptReadFile()
173 nb = (off_t)(t - b); in poptReadFile()
181 nb = 0; in poptReadFile()
188 *nbp = (size_t)nb; in poptReadFile()
221 size_t nb = 0; in poptConfigLine() local
268 if ((rc = poptReadFile(fn, &b, &nb, POPT_READFILE_TRIMNEWLINES)) != 0) in poptConfigLine()
[all …]

12345678910>>...36