Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 1634) sorted by relevance

12345678910>>...66

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
D2-1.c47 #define FAIL_AND_EXIT(f, rc) { \ argument
48 printf("Failed: function: %s status: %s(%u)\n", f, strerror(rc), rc); \
56 int rc; in thread_func() local
58 rc = pthread_getschedparam(pthread_self(), &policy, &sp); in thread_func()
59 if (rc) in thread_func()
60 FAIL_AND_EXIT("pthread_getschedparam()", rc); in thread_func()
62 rc = pthread_mutex_lock(&c_mutex); in thread_func()
63 if (rc) in thread_func()
64 FAIL_AND_EXIT("pthread_mutex_lock()", rc); in thread_func()
66 rc = pthread_cond_signal(&cond); in thread_func()
[all …]
/third_party/ltp/tools/sparse/sparse-src/validation/
Dbuiltin-overflow.c6 int rc = 0; in test() local
9 rc += __builtin_add_overflow(i, i, &i); in test()
10 rc += __builtin_add_overflow(l, i, &i); in test()
11 rc += __builtin_add_overflow(i, l, &i); in test()
12 rc += __builtin_add_overflow(i, i, &l); in test()
13 rc += __builtin_add_overflow(ll, i, &i); in test()
14 rc += __builtin_add_overflow(i, ll, &i); in test()
15 rc += __builtin_add_overflow(i, i, &ll); in test()
17 rc += __builtin_add_overflow_p(i, i, i); in test()
18 rc += __builtin_add_overflow_p(l, i, i); in test()
[all …]
/third_party/ffmpeg/libavcodec/
Dopus_rc.c32 static av_always_inline void opus_rc_enc_carryout(OpusRangeCoder *rc, int cbuf) in opus_rc_enc_carryout() argument
36 rc->ext++; in opus_rc_enc_carryout()
39 rc->rng_cur[0] = rc->rem + cb; in opus_rc_enc_carryout()
40 rc->rng_cur += (rc->rem >= 0); in opus_rc_enc_carryout()
41 for (; rc->ext > 0; rc->ext--) in opus_rc_enc_carryout()
42 *rc->rng_cur++ = mb; in opus_rc_enc_carryout()
43 av_assert0(rc->rng_cur < rc->rb.position); in opus_rc_enc_carryout()
44 rc->rem = cbuf & OPUS_RC_CEIL; /* Propagate */ in opus_rc_enc_carryout()
47 static av_always_inline void opus_rc_dec_normalize(OpusRangeCoder *rc) in opus_rc_dec_normalize() argument
49 while (rc->range <= OPUS_RC_BOT) { in opus_rc_dec_normalize()
[all …]
Dopus_rc.h61 static av_always_inline uint32_t opus_rc_tell(const OpusRangeCoder *rc) in opus_rc_tell() argument
63 return rc->total_bits - av_log2(rc->range) - 1; in opus_rc_tell()
66 static av_always_inline uint32_t opus_rc_tell_frac(const OpusRangeCoder *rc) in opus_rc_tell_frac() argument
70 total_bits = rc->total_bits << 3; in opus_rc_tell_frac()
71 rcbuffer = av_log2(rc->range) + 1; in opus_rc_tell_frac()
72 range = rc->range >> (rcbuffer-16); in opus_rc_tell_frac()
85 uint32_t ff_opus_rc_dec_cdf(OpusRangeCoder *rc, const uint16_t *cdf);
86 void ff_opus_rc_enc_cdf(OpusRangeCoder *rc, int val, const uint16_t *cdf);
88 uint32_t ff_opus_rc_dec_log(OpusRangeCoder *rc, uint32_t bits);
89 void ff_opus_rc_enc_log(OpusRangeCoder *rc, int val, uint32_t bits);
[all …]
/third_party/ltp/testcases/kernel/controllers/freezer/
Dlibcgroup_freezer91 local rc=0
94 rc=$?
100 result=${result:-$rc}
106 rc=$?
107 if [ $rc -ne 0 ]; then
108 result=${result:-$rc}
111 return $rc
116 rc=$?
117 if [ $rc -ne 0 ]; then
118 result=${result:-$rc}
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/third_party/spirv-tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/third_party/selinux/libsepol/src/
Dkernel_to_conf.c36 int rc; in cond_expr_to_str() local
38 rc = strs_stack_init(&stack); in cond_expr_to_str()
39 if (rc != 0) { in cond_expr_to_str()
90 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
91 if (rc != 0) { in cond_expr_to_str()
126 int rc; in constraint_expr_to_str() local
130 rc = strs_stack_init(&stack); in constraint_expr_to_str()
131 if (rc != 0) { in constraint_expr_to_str()
240 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
241 if (rc != 0) { in constraint_expr_to_str()
[all …]
Dkernel_to_cil.c37 int rc; in cond_expr_to_str() local
39 rc = strs_stack_init(&stack); in cond_expr_to_str()
40 if (rc != 0) { in cond_expr_to_str()
92 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
93 if (rc != 0) { in cond_expr_to_str()
128 int rc; in constraint_expr_to_str() local
132 rc = strs_stack_init(&stack); in constraint_expr_to_str()
133 if (rc != 0) { in constraint_expr_to_str()
244 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
245 if (rc != 0) { in constraint_expr_to_str()
[all …]
Dmodule_to_cil.c126 int rc = 1; in get_line() local
139 rc = 0; in get_line()
146 rc = -1; in get_line()
155 return rc; in get_line()
159 return rc; in get_line()
274 int rc = -1; in list_prepend() local
284 rc = 0; in list_prepend()
287 return rc; in list_prepend()
294 int rc = -1; in roles_gather_map() local
298 return rc; in roles_gather_map()
[all …]
/third_party/selinux/libsepol/cil/src/
Dcil_resolve_ast.c116 int rc = SEPOL_ERR; in __cil_resolve_perms() local
124 rc = __cil_resolve_perms(class_symtab, common_symtab, curr->data, &sub_list, class_flavor); in __cil_resolve_perms()
125 if (rc != SEPOL_OK) { in __cil_resolve_perms()
132 rc = cil_symtab_get_datum(class_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
133 if (rc == SEPOL_ENOENT) { in __cil_resolve_perms()
135 rc = cil_symtab_get_datum(common_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
138 if (rc != SEPOL_OK) { in __cil_resolve_perms()
156 return rc; in __cil_resolve_perms()
161 int rc = SEPOL_ERR; in cil_resolve_classperms() local
170 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
[all …]
Dcil_post.c66 int rc; in cats_compare() local
75 rc = strcmp(DATUM(i->data)->fqn, DATUM(j->data)->fqn); in cats_compare()
76 if (!rc) return rc; in cats_compare()
84 int rc; in level_compare() local
91 rc = strcmp(DATUM(a->sens)->fqn, DATUM(b->sens)->fqn); in level_compare()
92 if (rc != 0) return rc; in level_compare()
102 int rc; in range_compare() local
109 rc = level_compare(a->low, b->low); in range_compare()
110 if (rc != 0) return rc; in range_compare()
120 int rc; in context_compare() local
[all …]
Dcil_binary.c241 int rc = SEPOL_ERR; in cil_common_to_policydb() local
250 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
251 if (rc != SEPOL_OK) { in cil_common_to_policydb()
257 rc = symtab_init(&sepol_common->permissions, PERM_SYMTAB_SIZE); in cil_common_to_policydb()
258 if (rc != SEPOL_OK) { in cil_common_to_policydb()
268 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
269 if (rc != SEPOL_OK) { in cil_common_to_policydb()
284 return rc; in cil_common_to_policydb()
289 int rc = SEPOL_ERR; in cil_classorder_to_policydb() local
303 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()
[all …]
Dcil_build_ast.c61 int rc = SEPOL_ERR; in cil_fill_list() local
69 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_fill_list()
70 if (rc != SEPOL_OK) { in cil_fill_list()
83 return rc; in cil_fill_list()
111 int rc; in cil_add_decl_to_symtab() local
117 rc = cil_symtab_insert(symtab, key, datum, node); in cil_add_decl_to_symtab()
118 if (rc == SEPOL_EEXIST) { in cil_add_decl_to_symtab()
120 rc = cil_symtab_get_datum(symtab, key, &prev); in cil_add_decl_to_symtab()
121 if (rc != SEPOL_OK) { in cil_add_decl_to_symtab()
145 int rc = SEPOL_ERR; in cil_gen_node() local
[all …]
Dcil_verify.c97 int rc = SEPOL_ERR; in cil_verify_name() local
110 rc = SEPOL_ERR; in cil_verify_name()
144 return rc; in cil_verify_name()
190 int rc; in cil_verify_expr_syntax() local
241 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_expr_syntax()
242 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
318 int rc; in cil_verify_constraint_expr_syntax() local
353 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_constraint_expr_syntax()
354 if (rc != SEPOL_OK) { in cil_verify_constraint_expr_syntax()
423 int rc = SEPOL_OK; in __verify_no_self_reference_in_expr() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp252 #define rc(i) RegisterCell::ref(getCell(Reg[i], Inputs)) in evaluate() macro
274 return rc(N); in evaluate()
345 return rr0(rc(1), Outputs); in evaluate()
350 RegisterCell PC = eXTR(rc(1), 0, PW); in evaluate()
360 return rr0(eINS(RC, eXTR(rc(1), 0, PW), 0), Outputs); in evaluate()
373 RegisterCell CW = RegisterCell(W0).insert(rc(1), BT::BitMask(0, W1-1)); in evaluate()
374 RegisterCell RC = eADD(eSXT(CW, W1), rc(2)); in evaluate()
379 return rr0(eADD(rc(1), rc(2)), Outputs); in evaluate()
381 return rr0(eADD(rc(1), eIMM(im(2), W0)), Outputs); in evaluate()
383 RegisterCell RC = eADD(eIMM(im(1), W0), eASL(rc(2), im(3))); in evaluate()
[all …]
/third_party/selinux/libselinux/src/
Davc_internal.c58 int rc = 0; in avc_process_setenforce() local
66 if (avc_enforcing && (rc = avc_ss_reset(0)) < 0) { in avc_process_setenforce()
69 avc_prefix, rc, errno); in avc_process_setenforce()
70 return rc; in avc_process_setenforce()
80 int rc = 0; in avc_process_policyload() local
85 rc = avc_ss_reset(seqno); in avc_process_policyload()
86 if (rc < 0) { in avc_process_policyload()
89 avc_prefix, rc, errno); in avc_process_policyload()
90 return rc; in avc_process_policyload()
103 int len, rc = 0; in avc_netlink_open() local
[all …]
Dregex.c43 int rc; in regex_arch_string() local
54 rc = snprintf(arch_string_buffer, sizeof(arch_string_buffer), in regex_arch_string()
58 if (rc < 0) in regex_arch_string()
108 int rc; in regex_load_mmap() local
112 rc = next_entry(&entry_len, mmap_area, sizeof(uint32_t)); in regex_load_mmap()
113 if (rc < 0) in regex_load_mmap()
121 rc = pcre2_serialize_get_number_of_codes(mmap_area->next_addr); in regex_load_mmap()
122 if (rc != 1) in regex_load_mmap()
129 rc = pcre2_serialize_decode(&(*regex)->regex, 1, in regex_load_mmap()
132 if (rc != 1) in regex_load_mmap()
[all …]
Dget_context_list.c23 int rc; in get_default_context_with_role() local
25 rc = get_ordered_context_list(user, fromcon, &conary); in get_default_context_with_role()
26 if (rc <= 0) in get_default_context_with_role()
41 rc = -1; in get_default_context_with_role()
49 rc = 0; in get_default_context_with_role()
52 return rc; in get_default_context_with_role()
63 int rc; in get_default_context_with_rolelevel() local
73 rc = getcon(&backup_fromcon); in get_default_context_with_rolelevel()
74 if (rc < 0) in get_default_context_with_rolelevel()
75 return rc; in get_default_context_with_rolelevel()
[all …]
/third_party/curl/tests/unit/
Dunit1302.c58 CURLcode rc; variable
60 rc = Curl_base64_encode("i", 1, &output, &size);
61 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
66 rc = Curl_base64_encode("ii", 2, &output, &size);
67 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
72 rc = Curl_base64_encode("iii", 3, &output, &size);
73 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
78 rc = Curl_base64_encode("iiii", 4, &output, &size);
79 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
84 rc = Curl_base64_encode("\xff\x01\xfe\x02", 4, &output, &size);
[all …]
/third_party/curl/tests/libtest/
Dlib1560.c52 CURLUcode rc; in checkparts() local
73 rc = curl_url_get(u, parts[i].part, &p, getflags); in checkparts()
74 if(!rc && p) { in checkparts()
78 msnprintf(bufp, len, "%s[%d]", buf[0]?" | ":"", (int)rc); in checkparts()
1122 CURLUcode rc; in set_url() local
1126 rc = curl_url_set(urlp, CURLUPART_URL, set_url_list[i].in, in set_url()
1128 if(!rc) { in set_url()
1129 rc = curl_url_set(urlp, CURLUPART_URL, set_url_list[i].set, in set_url()
1131 if(rc) { in set_url()
1134 (int)rc, curl_url_strerror(rc)); in set_url()
[all …]
/third_party/libevdev/test/
Dtest-int-queue.c14 int rc; in START_TEST() local
16 rc = queue_alloc(&dev, 0); in START_TEST()
17 ck_assert_int_eq(rc, -ENOMEM); in START_TEST()
19 rc = queue_alloc(&dev, 100); in START_TEST()
20 ck_assert_int_eq(rc, 0); in START_TEST()
86 int rc; in START_TEST() local
89 rc = queue_pop(&dev, &ev); in START_TEST()
90 ck_assert_int_eq(rc, 1); in START_TEST()
98 rc = queue_pop(&dev, &ev); in START_TEST()
99 ck_assert_int_eq(rc, 0); in START_TEST()
[all …]
Dtest-libevdev-init.c36 int rc; in START_TEST() local
39 rc = libevdev_new_from_fd(-1, &dev); in START_TEST()
42 ck_assert_int_eq(rc, -EBADF); in START_TEST()
44 rc = libevdev_new_from_fd(STDIN_FILENO, &dev); in START_TEST()
46 ck_assert_int_eq(rc, -ENOTTY); in START_TEST()
54 int rc; in START_TEST() local
64 rc = uinput_device_new_with_events(&uidev, in START_TEST()
74 ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc)); in START_TEST()
334 int rc; in START_TEST() local
336 rc = uinput_device_new_with_events(&uidev, in START_TEST()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/
D2-1.c42 int rc; in thread_func() local
44 if ((rc = pthread_getattr_np(pthread_self(), &attr)) != 0) { in thread_func()
45 printf(ERROR_PREFIX "pthread_getattr_np: %s\n", strerror(rc)); in thread_func()
48 if ((rc = pthread_attr_getstacksize(&attr, &ssize)) != 0) { in thread_func()
50 strerror(rc)); in thread_func()
67 int rc; in main() local
70 rc = pthread_attr_init(&attr); in main()
71 if (rc != 0) { in main()
85 if ((rc = posix_memalign(&stack_addr, sysconf(_SC_PAGE_SIZE), in main()
87 printf(ERROR_PREFIX "posix_memalign: %s", strerror(rc)); in main()
[all …]

12345678910>>...66