Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 25 of 1118) sorted by relevance

12345678910>>...45

/third_party/libsnd/src/GSM610/
Dgsm_encode.c108 { uint16_t sr ; in gsm_encode() local
110 sr = 0 ; in gsm_encode()
111 sr = sr >> 6 | LARc [0] << 10 ; in gsm_encode()
112 sr = sr >> 6 | LARc [1] << 10 ; in gsm_encode()
113 *c++ = sr >> 4 ; in gsm_encode()
114 sr = sr >> 5 | LARc [2] << 11 ; in gsm_encode()
115 *c++ = sr >> 7 ; in gsm_encode()
116 sr = sr >> 5 | LARc [3] << 11 ; in gsm_encode()
117 sr = sr >> 4 | LARc [4] << 12 ; in gsm_encode()
118 *c++ = sr >> 6 ; in gsm_encode()
[all …]
Dgsm_decode.c17 { uint16_t sr = 0 ; in gsm_decode() local
21 { sr = *c++ ; in gsm_decode()
22 LARc [0] = sr & 0x3f ; sr >>= 6 ; in gsm_decode()
23 sr |= (uint16_t) *c++ << 2 ; in gsm_decode()
24 LARc [1] = sr & 0x3f ; sr >>= 6 ; in gsm_decode()
25 sr |= (uint16_t) *c++ << 4 ; in gsm_decode()
26 LARc [2] = sr & 0x1f ; sr >>= 5 ; in gsm_decode()
27 LARc [3] = sr & 0x1f ; sr >>= 5 ; in gsm_decode()
28 sr |= (uint16_t) *c++ << 2 ; in gsm_decode()
29 LARc [4] = sr & 0xf ; sr >>= 4 ; in gsm_decode()
[all …]
/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c100 size_t pa_srbchannel_write(pa_srbchannel *sr, const void *data, size_t l) { in pa_srbchannel_write() argument
105 void *ptr = pa_ringbuffer_begin_write(&sr->rb_write, &towrite); in pa_srbchannel_write()
118 pa_ringbuffer_end_write(&sr->rb_write, towrite); in pa_srbchannel_write()
127 pa_fdsem_post(sr->sem_write); in pa_srbchannel_write()
131 size_t pa_srbchannel_read(pa_srbchannel *sr, void *data, size_t l) { in pa_srbchannel_read() argument
136 void *ptr = pa_ringbuffer_peek(&sr->rb_read, &toread); in pa_srbchannel_read()
146 if (pa_ringbuffer_drop(&sr->rb_read, toread)) { in pa_srbchannel_read()
150 pa_fdsem_post(sr->sem_write); in pa_srbchannel_read()
181 static void srbchannel_rwloop(pa_srbchannel* sr) { in srbchannel_rwloop() argument
185 pa_ringbuffer_peek(&sr->rb_read, &q); in srbchannel_rwloop()
[all …]
/third_party/libunwind/src/ia64/
DGparser.c30 struct ia64_state_record *sr,
43 push (struct ia64_state_record *sr) in push() argument
53 memcpy (rs, &sr->curr, sizeof (*rs)); in push()
54 sr->curr.next = rs; in push()
58 pop (struct ia64_state_record *sr) in pop() argument
60 struct ia64_reg_state *rs = sr->curr.next; in pop()
67 memcpy (&sr->curr, rs, sizeof (*rs)); in pop()
200 finish_prologue (struct ia64_state_record *sr) in finish_prologue() argument
210 reg = sr->curr.reg + unw.save_order[i]; in finish_prologue()
214 reg->val = sr->gr_save_loc++; in finish_prologue()
[all …]
DGscript.c220 struct ia64_state_record *sr) in script_finalize() argument
222 script->pr_mask = sr->pr_mask; in script_finalize()
223 script->pr_val = sr->pr_val; in script_finalize()
240 compile_reg (struct ia64_state_record *sr, int i, struct ia64_reg_info *r, in compile_reg() argument
248 if (r->where == IA64_WHERE_NONE || r->when >= sr->when_target) in compile_reg()
370 sort_regs (struct ia64_state_record *sr, int regorder[]) in sort_regs() argument
378 if (sr->curr.reg[r].where == IA64_WHERE_NONE in sort_regs()
379 || sr->curr.reg[r].when >= sr->when_target) in sort_regs()
392 max_when = sr->curr.reg[max_reg].when; in sort_regs()
395 if (sr->curr.reg[regorder[j]].when > max_when) in sort_regs()
[all …]
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/
Dcheck_log.c43 static void srunner_send_evt (SRunner * sr, void *obj, enum cl_event evt);
46 srunner_set_log (SRunner * sr, const char *fname) in srunner_set_log() argument
48 if (sr->log_fname) in srunner_set_log()
50 sr->log_fname = fname; in srunner_set_log()
54 srunner_has_log (SRunner * sr) in srunner_has_log() argument
56 return srunner_log_fname (sr) != NULL; in srunner_has_log()
60 srunner_log_fname (SRunner * sr) in srunner_log_fname() argument
63 if (sr->log_fname != NULL) in srunner_log_fname()
64 return sr->log_fname; in srunner_log_fname()
71 srunner_set_xml (SRunner * sr, const char *fname) in srunner_set_xml() argument
[all …]
Dcheck_log.h24 void log_srunner_start (SRunner * sr);
25 void log_srunner_end (SRunner * sr);
26 void log_suite_start (SRunner * sr, Suite * s);
27 void log_suite_end (SRunner * sr, Suite * s);
28 void log_test_end (SRunner * sr, TestResult * tr);
29 void log_test_start (SRunner * sr, TCase * tc, TF * tfun);
31 void stdout_lfun (SRunner * sr, FILE * file, enum print_output,
34 void lfile_lfun (SRunner * sr, FILE * file, enum print_output,
37 void xml_lfun (SRunner * sr, FILE * file, enum print_output,
40 void tap_lfun (SRunner * sr, FILE * file, enum print_output,
[all …]
Dcheck_run.c61 static void srunner_run_init (SRunner * sr, enum print_output print_mode);
62 static void srunner_run_end (SRunner * sr, enum print_output print_mode);
63 static void srunner_iterate_suites (SRunner * sr,
67 static void srunner_iterate_tcase_tfuns (SRunner * sr, TCase * tc);
68 static void srunner_add_failure (SRunner * sr, TestResult * tf);
71 static int srunner_run_unchecked_setup (SRunner * sr, TCase * tc);
72 static TestResult *tcase_run_checked_setup (SRunner * sr, TCase * tc);
75 static void srunner_run_unchecked_teardown (SRunner * sr, TCase * tc);
77 static void srunner_run_tcase (SRunner * sr, TCase * tc);
78 static TestResult *tcase_run_tfun_nofork (SRunner * sr, TCase * tc, TF * tf,
[all …]
Dcheck.c401 SRunner *sr = (SRunner *) emalloc (sizeof (SRunner)); /* freed in srunner_free */ in srunner_create() local
403 sr->slst = check_list_create (); in srunner_create()
405 check_list_add_end (sr->slst, s); in srunner_create()
406 sr->stats = (TestStats *) emalloc (sizeof (TestStats)); /* freed in srunner_free */ in srunner_create()
407 sr->stats->n_checked = sr->stats->n_failed = sr->stats->n_errors = 0; in srunner_create()
408 sr->resultlst = check_list_create (); in srunner_create()
409 sr->log_fname = NULL; in srunner_create()
410 sr->xml_fname = NULL; in srunner_create()
411 sr->tap_fname = NULL; in srunner_create()
412 sr->loglst = NULL; in srunner_create()
[all …]
/third_party/skia/experimental/skrive/tests/
DBinaryReader.cpp40 auto sr = StreamReader::Make(SkData::MakeWithoutCopy(bin, sizeof(bin))); in DEF_TEST() local
42 REPORTER_ASSERT(reporter, sr); in DEF_TEST()
43 REPORTER_ASSERT(reporter, sr->readUInt32("version") == 18); in DEF_TEST()
45 StreamReader::AutoBlock ab(sr); in DEF_TEST()
47 REPORTER_ASSERT(reporter, sr->readLength16() == 1); in DEF_TEST()
50 StreamReader::AutoBlock ab(sr); in DEF_TEST()
52 REPORTER_ASSERT(reporter, sr->readString("name").equals("Fooo")); in DEF_TEST()
53 REPORTER_ASSERT(reporter, sr->readV2("translation") == (SkV2{0,0})); in DEF_TEST()
54 REPORTER_ASSERT(reporter, sr->readFloat("width" ) == 863); in DEF_TEST()
55 REPORTER_ASSERT(reporter, sr->readFloat("height") == 899); in DEF_TEST()
[all …]
DJsonReader.cpp30 auto sr = StreamReader::Make(SkData::MakeWithoutCopy(json, strlen(json))); in DEF_TEST() local
32 REPORTER_ASSERT(reporter, sr); in DEF_TEST()
33 REPORTER_ASSERT(reporter, sr->readUInt32("version") == 24); in DEF_TEST()
35 StreamReader::AutoBlock ab(sr); in DEF_TEST()
37 REPORTER_ASSERT(reporter, sr->readLength16() == 1); in DEF_TEST()
40 StreamReader::AutoBlock ab(sr); in DEF_TEST()
42 REPORTER_ASSERT(reporter, sr->readString("name").equals("artboard 1")); in DEF_TEST()
43 REPORTER_ASSERT(reporter, sr->readV2("translation") == (SkV2{24,42})); in DEF_TEST()
44 REPORTER_ASSERT(reporter, sr->readFloat("width" ) == 500); in DEF_TEST()
45 REPORTER_ASSERT(reporter, sr->readFloat("height") == 250); in DEF_TEST()
[all …]
/third_party/skia/experimental/skrive/src/
DArtboard.cpp24 std::tuple<sk_sp<Component>, size_t> make_from_stream(StreamReader* sr, Args&&... args) { in make_from_stream() argument
27 const auto parent_id = parse_node<T>(sr, node.get()); in make_from_stream()
32 std::tuple<sk_sp<Component>, size_t> parse_component(StreamReader* sr) { in parse_component() argument
33 StreamReader::AutoBlock block(sr); in parse_component()
36 return make_from_stream<Node >(sr); in parse_component()
38 return make_from_stream<Shape>(sr); in parse_component()
40 return make_from_stream<ColorPaint>(sr, SkPaint::kFill_Style); in parse_component()
42 return make_from_stream<ColorPaint>(sr, SkPaint::kStroke_Style); in parse_component()
44 return make_from_stream<Ellipse>(sr); in parse_component()
46 return make_from_stream<Rectangle>(sr); in parse_component()
[all …]
DNode.cpp21 size_t parse_node<Node>(StreamReader* sr, Node* node) { in parse_node() argument
22 const auto parent_id = parse_node<TransformableComponent>(sr, node); in parse_node()
24 node->setCollapsedVisibility(sr->readBool("isCollapsed")); in parse_node()
26 if (sr->openArray("clips")) { in parse_node()
27 const auto count = sr->readLength8(); in parse_node()
32 if (sr->openObject("clip")) { in parse_node()
33 /*const auto clip_id =*/ sr->readUInt16("node"); in parse_node()
34 /*const auto intersect =*/ sr->readBool("intersect"); in parse_node()
37 sr->closeObject(); in parse_node()
41 sr->closeArray(); in parse_node()
DPaint.cpp20 size_t parse_node<Paint>(StreamReader* sr, Paint* node) { in parse_node() argument
21 const auto parent_id = parse_node<Component>(sr, node); in parse_node()
23 node->setOpacity(sr->readFloat("opacity")); in parse_node()
28 void parse_fill_stroke(StreamReader* sr, Paint* node) { in parse_fill_stroke() argument
34 node->setFillRule(gFillTypeMap[std::min<size_t>(sr->readUInt8("fillRule"), in parse_fill_stroke()
37 node->setStrokeWidth(sr->readFloat("width")); in parse_fill_stroke()
44 node->setStrokeCap(gCapMap[std::min<size_t>(sr->readUInt8("cap"), in parse_fill_stroke()
52 node->setStrokeJoin(gJoinMap[std::min<size_t>(sr->readUInt8("join"), in parse_fill_stroke()
60 node->setStrokeTrim(gTrimMap[std::min<size_t>(sr->readUInt8("trim"), in parse_fill_stroke()
64 node->setStrokeTrimStart (sr->readFloat("start" )); in parse_fill_stroke()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/render/software/
DSDL_draw.h48 unsigned sr = r, sg = g, sb = b, sa = a; (void) sa; \
54 unsigned sr, sg, sb, sa = 0xFF; \
56 sr = DRAW_MUL(inva, sr) + r; \
65 unsigned sr, sg, sb, sa; (void) sa; \
67 sr += r; if (sr > 0xff) sr = 0xff; \
75 unsigned sr, sg, sb, sa; (void) sa; \
77 sr = DRAW_MUL(sr, r); \
95 DRAW_SETPIXEL(RGB555_FROM_RGB(*pixel, sr, sg, sb))
98 DRAW_SETPIXEL_BLEND(RGB_FROM_RGB555(*pixel, sr, sg, sb), \
99 RGB555_FROM_RGB(*pixel, sr, sg, sb))
[all …]
/third_party/boost/libs/beast/test/doc/
Dhttp_snippets.cpp144 response_serializer<string_body> sr{res}; in fxx() local
160 response_serializer<empty_body> sr{res}; in fxx() local
163 write_header(sock, sr); in fxx()
225 response_serializer<empty_body> sr{res}; in fxx() local
226 write_header(sock, sr); in fxx()
269 response_serializer<empty_body> sr{res}; in fxx() local
270 write_header(sock, sr); in fxx()
322 serializer<isRequest, Body, Fields> sr{m}; in send() local
329 write_some(stream, sr); in send()
331 while(! sr.is_done()); in send()
[all …]
/third_party/node/deps/brotli/c/enc/
Dbackward_references_inc.h45 HasherSearchResult sr; in EXPORT_FN() local
46 sr.len = 0; in EXPORT_FN()
47 sr.len_code_delta = 0; in EXPORT_FN()
48 sr.distance = 0; in EXPORT_FN()
49 sr.score = kMinScore; in EXPORT_FN()
52 max_distance, dictionary_start + gap, params->dist.max_distance, &sr); in EXPORT_FN()
53 if (sr.score > kMinScore) { in EXPORT_FN()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
73 if (sr2.score >= sr.score + cost_diff_lazy) { in EXPORT_FN()
78 sr = sr2; in EXPORT_FN()
[all …]
/third_party/skia/third_party/externals/brotli/c/enc/
Dbackward_references_inc.h45 HasherSearchResult sr; in EXPORT_FN() local
46 sr.len = 0; in EXPORT_FN()
47 sr.len_code_delta = 0; in EXPORT_FN()
48 sr.distance = 0; in EXPORT_FN()
49 sr.score = kMinScore; in EXPORT_FN()
52 max_distance, dictionary_start + gap, params->dist.max_distance, &sr); in EXPORT_FN()
53 if (sr.score > kMinScore) { in EXPORT_FN()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
73 if (sr2.score >= sr.score + cost_diff_lazy) { in EXPORT_FN()
78 sr = sr2; in EXPORT_FN()
[all …]
/third_party/boost/boost/beast/http/impl/
Dwrite.hpp79 serializer<isRequest, Body, Fields>& sr) in write_some_op() argument
84 , sr_(sr) in write_some_op()
148 serializer<isRequest, Body, Fields>& sr) const in operator ()()
150 return sr.is_header_done(); in operator ()()
160 serializer<isRequest, Body, Fields>& sr) const in operator ()()
162 return sr.is_done(); in operator ()()
187 serializer<isRequest, Body, Fields>& sr) in write_op() argument
192 , sr_(sr) in write_op()
301 serializer<isRequest, Body, Fields>* sr) in operator ()()
316 std::forward<WriteHandler>(h), *s, *sr); in operator ()()
[all …]
/third_party/boost/libs/beast/include/boost/beast/http/impl/
Dwrite.hpp79 serializer<isRequest, Body, Fields>& sr) in write_some_op() argument
84 , sr_(sr) in write_some_op()
148 serializer<isRequest, Body, Fields>& sr) const in operator ()()
150 return sr.is_header_done(); in operator ()()
160 serializer<isRequest, Body, Fields>& sr) const in operator ()()
162 return sr.is_done(); in operator ()()
187 serializer<isRequest, Body, Fields>& sr) in write_op() argument
192 , sr_(sr) in write_op()
301 serializer<isRequest, Body, Fields>* sr) in operator ()()
316 std::forward<WriteHandler>(h), *s, *sr); in operator ()()
[all …]
/third_party/openssl/crypto/ripemd/asm/
Drmd-586.pl63 @sr=( 8, 9, 9,11,13,15,15, 5, 7, 7, 8,11,14,14,12, 6,
457 &RIP5($A,$B,$C,$D,$E,$wr[ 0],$sr[ 0],$KR0,-2);
458 &RIP5($E,$A,$B,$C,$D,$wr[ 1],$sr[ 1],$KR0,0);
459 &RIP5($D,$E,$A,$B,$C,$wr[ 2],$sr[ 2],$KR0,0);
460 &RIP5($C,$D,$E,$A,$B,$wr[ 3],$sr[ 3],$KR0,0);
461 &RIP5($B,$C,$D,$E,$A,$wr[ 4],$sr[ 4],$KR0,0);
462 &RIP5($A,$B,$C,$D,$E,$wr[ 5],$sr[ 5],$KR0,0);
463 &RIP5($E,$A,$B,$C,$D,$wr[ 6],$sr[ 6],$KR0,0);
464 &RIP5($D,$E,$A,$B,$C,$wr[ 7],$sr[ 7],$KR0,0);
465 &RIP5($C,$D,$E,$A,$B,$wr[ 8],$sr[ 8],$KR0,0);
[all …]
/third_party/flutter/glfw/src/
Dx11_monitor.c54 static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) in getModeInfo() argument
58 for (i = 0; i < sr->nmode; i++) in getModeInfo()
60 if (sr->modes[i].id == id) in getModeInfo()
61 return sr->modes + i; in getModeInfo()
104 XRRScreenResources* sr; in _glfwSetVideoModeX11() local
117 sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); in _glfwSetVideoModeX11()
118 ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); in _glfwSetVideoModeX11()
119 oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); in _glfwSetVideoModeX11()
123 const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); in _glfwSetVideoModeX11()
141 sr, monitor->x11.crtc, in _glfwSetVideoModeX11()
[all …]
/third_party/boost/libs/spirit/repository/test/karma/
Dsubrule.cpp42 subrule<0> sr; in main() local
45 sr = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4] in main()
50 sr = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)] in main()
58 sr = a << b << c in main()
69 subrule<0> sr; in main() local
72 sr = char_[_1 = 'a'] << int_[_1 = 10] << double_[_1 = 12.4] in main()
77 sr = (char_ << int_ << double_)[(_1 = 'a', _2 = 10, _3 = 12.4)] in main()
85 sr = a << b << c in main()
98 subrule<0, var_type()> sr; in main() local
101 sr = (char_ | int_ | double_)[_1 = _r0] in main()
[all …]
/third_party/libunwind/src/dwarf/
DGparser.c55 set_reg (dwarf_state_record_t *sr, unw_word_t regnum, dwarf_where_t where, in set_reg() argument
58 sr->rs_current.reg.where[regnum] = where; in set_reg()
59 sr->rs_current.reg.val[regnum] = val; in set_reg()
92 run_cfi_program (struct dwarf_cursor *c, dwarf_state_record_t *sr, in run_cfi_program() argument
186 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
195 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
204 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
218 sr->rs_current.reg.where[regnum] = sr->rs_initial.reg.where[regnum]; in run_cfi_program()
219 sr->rs_current.reg.val[regnum] = sr->rs_initial.reg.val[regnum]; in run_cfi_program()
233 sr->rs_current.reg.where[regnum] = sr->rs_initial.reg.where[regnum]; in run_cfi_program()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_render_stencilref.c61 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_begin() local
66 sr->rs_cull_mode = rs->cb_main[rs->cull_mode_index]; in r300_stencilref_begin()
67 sr->zb_stencilrefmask = dsa->stencil_ref_mask; in r300_stencilref_begin()
68 sr->ref_value_front = r300->stencil_ref.ref_value[0]; in r300_stencilref_begin()
79 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_switch_side() local
83 rs->cb_main[rs->cull_mode_index] = sr->rs_cull_mode | R300_CULL_FRONT; in r300_stencilref_switch_side()
94 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_end() local
99 rs->cb_main[rs->cull_mode_index] = sr->rs_cull_mode; in r300_stencilref_end()
100 dsa->stencil_ref_mask = sr->zb_stencilrefmask; in r300_stencilref_end()
101 r300->stencil_ref.ref_value[0] = sr->ref_value_front; in r300_stencilref_end()
[all …]

12345678910>>...45