Searched refs:parse_size (Results 1 – 10 of 10) sorted by relevance
/external/minijail/ |
D | util_unittest.cc | 310 TEST(parse_size, complete) { in TEST() argument 313 ASSERT_EQ(0, parse_size(&size, "42")); in TEST() 316 ASSERT_EQ(0, parse_size(&size, "16K")); in TEST() 319 ASSERT_EQ(0, parse_size(&size, "1M")); in TEST() 323 ASSERT_EQ(0, parse_size(&size, "3G")); in TEST() 327 ASSERT_EQ(0, parse_size(&size, "4294967294")); in TEST() 333 ASSERT_EQ(0, parse_size(&size, "9E")); in TEST() 337 ASSERT_EQ(0, parse_size(&size, "15E")); in TEST() 341 ASSERT_EQ(0, parse_size(&size, "18446744073709551614")); in TEST() 345 ASSERT_EQ(-ERANGE, parse_size(&size, "16E")); in TEST() [all …]
|
D | util.h | 157 int parse_size(size_t *size, const char *sizespec);
|
D | util.c | 351 int parse_size(size_t *result, const char *sizespec) in parse_size() function
|
D | minijail0_cli.c | 776 0 != parse_size(&tmp_size, optarg)) { in parse_args()
|
/external/libopus/src/ |
D | opus.c | 153 static int parse_size(const unsigned char *data, opus_int32 len, opus_int16 *size) in parse_size() function 241 bytes = parse_size(data, len, size); in opus_packet_parse_impl() 283 bytes = parse_size(data, len, size+i); in opus_packet_parse_impl() 306 bytes = parse_size(data, len, size+count-1); in opus_packet_parse_impl()
|
/external/autotest/client/tests/aiostress/ |
D | aio-stress.c | 1236 off_t parse_size(char *size_arg, off_t mult) { function 1324 page_size_mask = parse_size(optarg, 1024); 1331 context_offset = parse_size(optarg, 1024 * 1024); 1336 file_size = parse_size(optarg, 1024 * 1024); 1342 rec_len = parse_size(optarg, 1024);
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aio-stress.c | 1261 off_t parse_size(char *size_arg, off_t mult) function 1358 page_size_mask = parse_size(optarg, 1024); 1365 context_offset = parse_size(optarg, 1024 * 1024); 1370 file_size = parse_size(optarg, 1024 * 1024); 1376 rec_len = parse_size(optarg, 1024);
|
/external/bcc/src/cc/usdt/ |
D | usdt_args.cc | 142 bool ArgumentParser_aarch64::parse_size(ssize_t pos, ssize_t &new_pos, in parse_size() function in USDT::ArgumentParser_aarch64 188 if (parse_size(cur_pos, new_pos, &arg_size) == false) in parse()
|
/external/bcc/src/cc/ |
D | usdt.h | 118 bool parse_size(ssize_t pos, ssize_t &new_pos, optional<int> *arg_size);
|
/external/bcc/src/cc/includes/ |
D | usdt.h | 118 bool parse_size(ssize_t pos, ssize_t &new_pos, optional<int> *arg_size);
|