Home
last modified time | relevance | path

Searched refs:leftover (Results 1 – 25 of 88) sorted by relevance

1234

/external/ltp/testcases/kernel/fs/doio/
Dwrite_log.c265 int fd, leftover, nbytes, offset, recnum, reclen, rval; in wlog_scan_backward() local
294 leftover = 0; in wlog_scan_backward()
301 if ((unsigned int)offset + leftover < sizeof(buf)) { in wlog_scan_backward()
302 bufstart = bufend - (offset + leftover); in wlog_scan_backward()
305 offset -= sizeof(buf) - leftover; in wlog_scan_backward()
318 nbytes = read(fd, bufstart, bufend - bufstart - leftover); in wlog_scan_backward()
324 (int)(bufend - bufstart - leftover), in wlog_scan_backward()
330 leftover = 0; in wlog_scan_backward()
341 leftover = cp - bufstart; in wlog_scan_backward()
342 memcpy(bufend - leftover, bufstart, leftover); in wlog_scan_backward()
[all …]
/external/tensorflow/third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.0/windows/
Dmsvc_wrapper_for_nvcc.py61 args, leftover = parser.parse_known_args(argv)
63 return (sum(vars(args)[option], []), leftover)
64 return ([], leftover)
88 args, leftover = parser.parse_known_args(argv)
92 return (['--' + a for a in options], leftover)
93 return ([], leftover)
194 args, leftover = parser.parse_known_args(sys.argv[1:])
198 leftover = [pipes.quote(s) for s in leftover]
200 return InvokeNvcc(leftover, log=args.cuda_log)
/external/toybox/toys/posix/
Dod.c37 unsigned types, leftover, star;
134 if (TT.leftover<TT.w) memset(TT.buf+TT.leftover, 0, TT.w-TT.leftover); in od_outline()
137 if (!(flags&FLAG_v) && TT.j != TT.pos && TT.leftover in od_outline()
151 if (!TT.leftover) { in od_outline()
157 TT.pos += len = TT.leftover; in od_outline()
158 TT.leftover = 0; in od_outline()
201 char *buf = TT.buf + TT.leftover; in do_od()
202 int len = TT.w - TT.leftover; in do_od()
215 TT.leftover += len; in do_od()
216 if (TT.leftover < TT.w) break; in do_od()
[all …]
/external/parameter-framework/upstream/utility/
DTokenizer.cpp46 bool leftover = false; in split() local
51 leftover = false; in split()
61 leftover = true; in split()
69 leftover = true; in split()
73 if (leftover) { in split()
/external/tensorflow/third_party/gpus/crosstool/windows/
Dmsvc_wrapper_for_nvcc.py.tpl61 args, leftover = parser.parse_known_args(argv)
63 return (sum(vars(args)[option], []), leftover)
64 return ([], leftover)
88 args, leftover = parser.parse_known_args(argv)
92 return (['--' + a for a in options], leftover)
93 return ([], leftover)
201 args, leftover = parser.parse_known_args(sys.argv[1:])
205 leftover = [pipes.quote(s) for s in leftover]
207 return InvokeNvcc(leftover, log=args.cuda_log)
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
Dregex_tokenizer.cc64 absl::string_view leftover(input.data()); in Tokenize() local
65 absl::string_view last_end = leftover; in Tokenize()
71 while (RE2::FindAndConsume(&leftover, delim_re_, &extracted_delim_token)) { in Tokenize()
76 last_end = leftover; in Tokenize()
85 if (!leftover.empty()) { in Tokenize()
86 result.subwords.push_back(std::string(leftover)); in Tokenize()
/external/python/cpython3/Tools/scripts/
Drgrep.py36 leftover = None
44 if leftover is None:
48 lines[-1] = lines[-1] + leftover
50 leftover = lines[0]
53 leftover = None
/external/python/cpython2/Tools/scripts/
Drgrep.py34 leftover = None
42 if leftover is None:
46 lines[-1] = lines[-1] + leftover
48 leftover = lines[0]
51 leftover = None
/external/modp_b64/
Dmodp_b64.cc139 int leftover = len % 4; in modp_b64_decode() local
140 size_t chunks = (leftover == 0) ? len / 4 - 1 : len /4; in modp_b64_decode()
158 switch (leftover) { in modp_b64_decode()
184 return 3*chunks + (6*leftover)/8; in modp_b64_decode()
209 int leftover = len % 4; in modp_b64_decode() local
210 size_t chunks = (leftover == 0) ? len / 4 - 1 : len /4; in modp_b64_decode()
230 switch (leftover) { in modp_b64_decode()
262 return 3*chunks + (6*leftover)/8; in modp_b64_decode()
/external/python/cpython2/Lib/
Dbase64.py148 quanta, leftover = divmod(len(s), 5)
150 if leftover:
151 s += ('\0' * (5 - leftover))
173 if leftover == 1:
175 elif leftover == 2:
177 elif leftover == 3:
179 elif leftover == 4:
203 quanta, leftover = divmod(len(s), 8)
204 if leftover:
/external/gemmlowp/meta/
Dtest_streams_correctness.cc69 int leftover = elements % 8; in check() local
85 for (int j = 0; j < leftover; ++j) { in check()
105 template <int lanes, int leftover>
108 int all_elements = elements + leftover; in test_2()
117 Stream<std::uint8_t, lanes, 8, leftover, RowMajorWithSum>::Pack(in, params, in test_2()
124 std::cout << "Row: " << lanes << "x8x" << leftover << " : " in test_2()
139 Stream<std::uint8_t, lanes, 8, leftover, ColumnMajorWithSum>::Pack(in, params, in test_2()
146 std::cout << "Column: " << lanes << "x8x" << leftover << " : " in test_2()
/external/libopus/silk/arm/
DLPC_inv_pred_gain_neon_intr.c208 const opus_int leftover = order & 7; in silk_LPC_inverse_pred_gain_neon() local
218 switch( order - leftover ) in silk_LPC_inverse_pred_gain_neon()
246 A_Q12 += order - leftover; in silk_LPC_inverse_pred_gain_neon()
248 switch( leftover ) in silk_LPC_inverse_pred_gain_neon()
253 Atmp_QA[ order - leftover + 5 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 5 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
254 Atmp_QA[ order - leftover + 4 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 4 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
260 Atmp_QA[ order - leftover + 3 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 3 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
261 Atmp_QA[ order - leftover + 2 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 2 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
267 Atmp_QA[ order - leftover + 1 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 1 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
268 Atmp_QA[ order - leftover + 0 ] = silk_LSHIFT32( (opus_int32)A_Q12[ 0 ], QA - 12 ); in silk_LPC_inverse_pred_gain_neon()
/external/autotest/cli/
Dlabel.py86 (options, leftover) = super(label_list, self).parse([host_info])
101 return (options, leftover)
154 (options, leftover) = super(label_create,
159 return (options, leftover)
189 (options, leftover) = super(label_add_or_remove,
197 return (options, leftover)
Djob.py122 options, leftover = super(job_list, self).parse()
133 return options, leftover
171 options, leftover = super(job_stat, self).parse([status_list],
187 return options, leftover
318 options, leftover = super(job_create_or_clone, self).parse(
346 return options, leftover
434 options, leftover = super(job_create, self).parse(
494 return options, leftover
547 options, leftover = super(job_clone, self).parse()
562 return options, leftover
[all …]
Dserver.py100 (options, leftover) = super(server, self).parse([role_info], **kwargs)
129 return (options, leftover)
175 (options, leftover) = super(server_list, self).parse()
182 return (options, leftover)
270 (options, leftover) = super(server_create, self).parse()
276 return (options, leftover)
461 (options, leftover) = super(server_modify, self).parse()
499 return (options, leftover)
Dtopic_common.py208 def get_values(self, options, leftover=[]): argument
235 add_on = leftover
236 leftover = []
269 return list(result), leftover
580 (options, leftover) = self.parse_global()
587 values, leftover = item_parse_info.get_values(options,
588 leftover)
604 return (options, leftover)
617 (options, leftover) = self.parser.parse_args()
640 return (options, leftover)
/external/rust/crates/quiche/deps/boringssl/src/crypto/poly1305/
Dpoly1305_vec.c90 uint64_t leftover; // 8 bytes member
143 st->leftover = 0; in CRYPTO_poly1305_init()
684 if ((st->leftover == 0) && (bytes > 32)) { in CRYPTO_poly1305_update()
689 want = poly1305_min(32 - st->leftover, bytes); in CRYPTO_poly1305_update()
690 OPENSSL_memcpy(st->buffer + st->leftover, m, want); in CRYPTO_poly1305_update()
693 st->leftover += want; in CRYPTO_poly1305_update()
694 if ((st->leftover < 32) || (bytes == 0)) { in CRYPTO_poly1305_update()
698 st->leftover = 0; in CRYPTO_poly1305_update()
704 if (st->leftover) { in CRYPTO_poly1305_update()
705 want = poly1305_min(64 - st->leftover, bytes); in CRYPTO_poly1305_update()
[all …]
/external/boringssl/src/crypto/poly1305/
Dpoly1305_vec.c90 uint64_t leftover; // 8 bytes member
147 st->leftover = 0; in CRYPTO_poly1305_init()
688 if ((st->leftover == 0) && (bytes > 32)) { in CRYPTO_poly1305_update()
693 want = poly1305_min(32 - st->leftover, bytes); in CRYPTO_poly1305_update()
694 OPENSSL_memcpy(st->buffer + st->leftover, m, want); in CRYPTO_poly1305_update()
697 st->leftover += want; in CRYPTO_poly1305_update()
698 if ((st->leftover < 32) || (bytes == 0)) { in CRYPTO_poly1305_update()
702 st->leftover = 0; in CRYPTO_poly1305_update()
708 if (st->leftover) { in CRYPTO_poly1305_update()
709 want = poly1305_min(64 - st->leftover, bytes); in CRYPTO_poly1305_update()
[all …]
/external/rust/crates/ring/crypto/poly1305/
Dpoly1305_vec.c94 uint64_t leftover; // 8 bytes member
151 st->leftover = 0; in GFp_poly1305_init()
692 if ((st->leftover == 0) && (bytes > 32)) { in GFp_poly1305_update()
697 want = poly1305_min(32 - st->leftover, bytes); in GFp_poly1305_update()
698 GFp_memcpy(st->buffer + st->leftover, m, want); in GFp_poly1305_update()
701 st->leftover += want; in GFp_poly1305_update()
702 if ((st->leftover < 32) || (bytes == 0)) { in GFp_poly1305_update()
706 st->leftover = 0; in GFp_poly1305_update()
712 if (st->leftover) { in GFp_poly1305_update()
713 want = poly1305_min(64 - st->leftover, bytes); in GFp_poly1305_update()
[all …]
/external/mesa3d/src/amd/compiler/tests/
Dglsl_scraper.py204 leftover = ''
211 leftover += line[pos:m.start()]
214 if leftover:
215 yield leftover
216 leftover = ''
221 leftover += line[pos:]
226 if leftover:
227 yield leftover
/external/python/cpython3/Lib/
Dbase64.py155 leftover = len(s) % 5
157 if leftover:
158 s = s + b'\0' * (5 - leftover) # Don't use += !
170 if leftover == 1:
172 elif leftover == 2:
174 elif leftover == 3:
176 elif leftover == 4:
239 leftover = (43 - 5 * padchars) // 8 # 1: 4, 3: 3, 4: 2, 6: 1
240 decoded[-5:] = last[:leftover]
/external/rust/crates/oorandom/src/
Dlib.rs140 let mut leftover: u32 = (m & 0xFFFF_FFFF) as u32; in rand_range() localVariable
142 if leftover < s { in rand_range()
145 while leftover < threshold { in rand_range()
147 leftover = (m & 0xFFFF_FFFF) as u32; in rand_range()
249 let mut leftover: u64 = (m & 0xFFFFFFFF_FFFFFFFF) as u64; in rand_range() localVariable
251 if leftover < s { in rand_range()
254 while leftover < threshold { in rand_range()
256 leftover = (m & 0xFFFFFFFF_FFFFFFFF) as u64; in rand_range()
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c326 off_t leftover = 0; in main() local
463 leftover = length % alignment; in main()
464 if (leftover) { in main()
467 length -= leftover; in main()
555 if (leftover) { in main()
564 leftover, offset); in main()
568 leftover, offset); in main()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_runners.py109 async def leftover(): function
114 lo_task = asyncio.create_task(leftover())
124 async def leftover(): function
135 lo_task = asyncio.create_task(leftover())
/external/tensorflow/third_party/gpus/crosstool/clang/bin/
Dcrosstool_wrapper_driver_rocm.tpl215 args, leftover = parser.parse_known_args(sys.argv[1:])
223 leftover = [pipes.quote(s) for s in leftover]
225 return InvokeHipcc(leftover, log=args.rocm_log)

1234