Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/external/bison/lib/uniwidth/
Dwidth.c315 uc_width (ucs4_t uc, const char *encoding) in uc_width() argument
318 if ((uc >> 9) < 240) in uc_width()
320 int ind = nonspacing_table_ind[uc >> 9]; in uc_width()
322 if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) in uc_width()
324 if (uc > 0 && uc < 0xa0) in uc_width()
330 else if ((uc >> 9) == (0xe0000 >> 9)) in uc_width()
332 if (uc >= 0xe0100) in uc_width()
334 if (uc <= 0xe01ef) in uc_width()
339 if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) in uc_width()
347 if (uc >= 0x1100 in uc_width()
[all …]
/external/v8/test/cctest/
Dtest-conversions.cc39 UnicodeCache uc; in TEST() local
40 CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX | ALLOW_IMPLICIT_OCTAL)); in TEST()
41 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX | ALLOW_IMPLICIT_OCTAL)); in TEST()
42 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX | ALLOW_IMPLICIT_OCTAL)); in TEST()
43 CHECK_EQ(16.0, StringToDouble(&uc, "0x10", ALLOW_HEX | ALLOW_IMPLICIT_OCTAL)); in TEST()
44 CHECK_EQ(255.0, StringToDouble(&uc, "0xff", in TEST()
46 CHECK_EQ(175.0, StringToDouble(&uc, "0xAF", in TEST()
49 CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX)); in TEST()
50 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX)); in TEST()
51 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX)); in TEST()
[all …]
/external/clang/test/CodeGen/
DAtomics.c6 unsigned char uc; variable
17 (void) __sync_fetch_and_add (&uc, 1); // CHECK: atomicrmw add i8 in test_op_ignore()
26 (void) __sync_fetch_and_sub (&uc, 1); // CHECK: atomicrmw sub i8 in test_op_ignore()
35 (void) __sync_fetch_and_or (&uc, 1); // CHECK: atomicrmw or i8 in test_op_ignore()
44 (void) __sync_fetch_and_xor (&uc, 1); // CHECK: atomicrmw xor i8 in test_op_ignore()
53 (void) __sync_fetch_and_nand (&uc, 1); // CHECK: atomicrmw nand i8 in test_op_ignore()
62 (void) __sync_fetch_and_and (&uc, 1); // CHECK: atomicrmw and i8 in test_op_ignore()
75 uc = __sync_fetch_and_add (&uc, 11); // CHECK: atomicrmw add in test_fetch_and_op()
84 uc = __sync_fetch_and_sub (&uc, 11); // CHECK: atomicrmw sub in test_fetch_and_op()
93 uc = __sync_fetch_and_or (&uc, 11); // CHECK: atomicrmw or in test_fetch_and_op()
[all …]
Dzvector.c5 volatile vector unsigned char uc, uc2; variable
33 uc = uc2; in test_assign()
70 uc = +uc2; in test_pos()
286 uc = uc + uc2; in test_add()
290 uc = uc + bc2; in test_add()
294 uc = bc + uc2; in test_add()
392 uc += uc2; in test_add_assign()
396 uc += bc2; in test_add_assign()
474 uc = uc - uc2; in test_sub()
478 uc = uc - bc2; in test_sub()
[all …]
/external/clang/test/Sema/
Dzvector.c6 vector unsigned char uc, uc2; variable
47 uc = uc2; in foo()
65 uc = sc2; // expected-error {{incompatible type}} in foo()
66 uc = bc2; // expected-error {{incompatible type}} in foo()
72 uc = sc_scalar; // expected-error {{incompatible type}} in foo()
73 uc = uc_scalar; // expected-error {{incompatible type}} in foo()
87 uc = us2; // expected-error {{incompatible type}} in foo()
88 uc = ui2; // expected-error {{incompatible type}} in foo()
89 uc = ul2; // expected-error {{incompatible type}} in foo()
90 uc = fd2; // expected-error {{incompatible type}} in foo()
[all …]
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-amd64-solaris.c86 void ML_(setup_start_thread_context)(ThreadId tid, vki_ucontext_t *uc) in ML_()
91 VG_(memset)(uc, 0, sizeof(*uc)); in ML_()
92 uc->uc_flags = VKI_UC_CPU | VKI_UC_SIGMASK; in ML_()
95 VG_(sigfillset)(&uc->uc_sigmask); in ML_()
104 uc->uc_mcontext.gregs[VKI_REG_RDI] = (UWord)tst; /* the parameter */ in ML_()
105 uc->uc_mcontext.gregs[VKI_REG_RIP] = (UWord)ML_(start_thread_NORETURN); in ML_()
106 uc->uc_mcontext.gregs[VKI_REG_RSP] = (UWord)stack; in ML_()
110 void ML_(save_machine_context)(ThreadId tid, vki_ucontext_t *uc, in ML_()
115 = &uc->uc_mcontext.fpregs.fp_reg_set.fpchip_state; in ML_()
120 uc->uc_mcontext.gregs[VKI_REG_RIP] = tst->arch.vex.guest_RIP; in ML_()
[all …]
Dsyswrap-x86-solaris.c92 void ML_(setup_start_thread_context)(ThreadId tid, vki_ucontext_t *uc) in ML_()
98 VG_(memset)(uc, 0, sizeof(*uc)); in ML_()
99 uc->uc_flags = VKI_UC_CPU | VKI_UC_SIGMASK; in ML_()
102 VG_(sigfillset)(&uc->uc_sigmask); in ML_()
112 uc->uc_mcontext.gregs[VKI_EIP] = (UWord)ML_(start_thread_NORETURN); in ML_()
113 uc->uc_mcontext.gregs[VKI_UESP] = (UWord)stack; in ML_()
125 uc->uc_mcontext.gregs[VKI_CS] = cs; in ML_()
126 uc->uc_mcontext.gregs[VKI_DS] = ds; in ML_()
127 uc->uc_mcontext.gregs[VKI_SS] = ss; in ML_()
128 uc->uc_mcontext.gregs[VKI_ES] = es; in ML_()
[all …]
/external/google-breakpad/src/client/linux/dump_writer_common/
Ducontext_reader.cc43 uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { in GetStackPointer() argument
44 return uc->uc_mcontext.gregs[REG_ESP]; in GetStackPointer()
47 uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { in GetInstructionPointer() argument
48 return uc->uc_mcontext.gregs[REG_EIP]; in GetInstructionPointer()
51 void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, in FillCPUContext() argument
53 const greg_t* regs = uc->uc_mcontext.gregs; in FillCPUContext()
91 uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) {
92 return uc->uc_mcontext.gregs[REG_RSP];
95 uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) {
96 return uc->uc_mcontext.gregs[REG_RIP];
[all …]
/external/libunwind/src/aarch64/
DGresume.c37 unw_tdep_context_t *uc = c->dwarf.as_arg; in aarch64_local_resume() local
44 regs[0] = uc->uc_mcontext.regs[19]; in aarch64_local_resume()
45 regs[1] = uc->uc_mcontext.regs[20]; in aarch64_local_resume()
46 regs[2] = uc->uc_mcontext.regs[21]; in aarch64_local_resume()
47 regs[3] = uc->uc_mcontext.regs[22]; in aarch64_local_resume()
48 regs[4] = uc->uc_mcontext.regs[23]; in aarch64_local_resume()
49 regs[5] = uc->uc_mcontext.regs[24]; in aarch64_local_resume()
50 regs[6] = uc->uc_mcontext.regs[25]; in aarch64_local_resume()
51 regs[7] = uc->uc_mcontext.regs[26]; in aarch64_local_resume()
52 regs[8] = uc->uc_mcontext.regs[27]; in aarch64_local_resume()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_pack_color.h64 enum pipe_format format, union util_color *uc) in util_pack_color_ub() argument
69 uc->ui = (r << 24) | (g << 16) | (b << 8) | a; in util_pack_color_ub()
74 uc->ui = (r << 24) | (g << 16) | (b << 8) | 0xff; in util_pack_color_ub()
79 uc->ui = (a << 24) | (r << 16) | (g << 8) | b; in util_pack_color_ub()
84 uc->ui = (0xff << 24) | (r << 16) | (g << 8) | b; in util_pack_color_ub()
89 uc->ui = (b << 24) | (g << 16) | (r << 8) | a; in util_pack_color_ub()
94 uc->ui = (b << 24) | (g << 16) | (r << 8) | 0xff; in util_pack_color_ub()
99 uc->us = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); in util_pack_color_ub()
104 uc->us = ((0x80) << 8) | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); in util_pack_color_ub()
109 uc->us = ((a & 0x80) << 8) | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); in util_pack_color_ub()
[all …]
/external/libunwind/src/sh/
DGresume.c37 unw_tdep_context_t *uc = c->dwarf.as_arg; in sh_local_resume() local
44 regs[0] = uc->uc_mcontext.gregs[8]; in sh_local_resume()
45 regs[1] = uc->uc_mcontext.gregs[9]; in sh_local_resume()
46 regs[2] = uc->uc_mcontext.gregs[10]; in sh_local_resume()
47 regs[3] = uc->uc_mcontext.gregs[11]; in sh_local_resume()
48 regs[4] = uc->uc_mcontext.gregs[12]; in sh_local_resume()
49 regs[5] = uc->uc_mcontext.gregs[13]; in sh_local_resume()
50 regs[6] = uc->uc_mcontext.gregs[14]; in sh_local_resume()
51 regs[7] = uc->uc_mcontext.gregs[15]; in sh_local_resume()
52 unsigned long pc = uc->uc_mcontext.pr; in sh_local_resume()
[all …]
/external/libunwind/src/arm/
DGresume.c41 unw_tdep_context_t *uc = c->dwarf.as_arg; in arm_local_resume() local
48 regs[0] = uc->regs[4]; in arm_local_resume()
49 regs[1] = uc->regs[5]; in arm_local_resume()
50 regs[2] = uc->regs[6]; in arm_local_resume()
51 regs[3] = uc->regs[7]; in arm_local_resume()
52 regs[4] = uc->regs[8]; in arm_local_resume()
53 regs[5] = uc->regs[9]; in arm_local_resume()
54 regs[6] = uc->regs[10]; in arm_local_resume()
55 regs[7] = uc->regs[11]; /* FP */ in arm_local_resume()
56 regs[8] = uc->regs[13]; /* SP */ in arm_local_resume()
[all …]
/external/libmicrohttpd/src/examples/
Ddemo.c487 struct UploadContext *uc = cls; in process_upload_data() local
491 return do_append (&uc->category, data, size); in process_upload_data()
493 return do_append (&uc->language, data, size); in process_upload_data()
506 if ( (NULL == uc->category) || in process_upload_data()
507 (NULL == uc->language) ) in process_upload_data()
512 uc->response = request_refused_response; in process_upload_data()
515 if (-1 == uc->fd) in process_upload_data()
523 uc->response = request_refused_response; in process_upload_data()
528 (void) mkdir (uc->language); in process_upload_data()
530 (void) mkdir (uc->language, S_IRWXU); in process_upload_data()
[all …]
Ddemo_https.c488 struct UploadContext *uc = cls; in process_upload_data() local
492 return do_append (&uc->category, data, size); in process_upload_data()
494 return do_append (&uc->language, data, size); in process_upload_data()
507 if ( (NULL == uc->category) || in process_upload_data()
508 (NULL == uc->language) ) in process_upload_data()
513 uc->response = request_refused_response; in process_upload_data()
516 if (-1 == uc->fd) in process_upload_data()
524 uc->response = request_refused_response; in process_upload_data()
529 (void) mkdir (uc->language); in process_upload_data()
531 (void) mkdir (uc->language, S_IRWXU); in process_upload_data()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dvg_translate.c462 union util_color uc; in _vega_unpack_float_span_rgba() local
475 util_pack_color_ub(r, g, b, a, PIPE_FORMAT_R32G32B32A32_FLOAT, &uc); in _vega_unpack_float_span_rgba()
476 rgba[i][0] = uc.f[0]; in _vega_unpack_float_span_rgba()
477 rgba[i][1] = uc.f[1]; in _vega_unpack_float_span_rgba()
478 rgba[i][2] = uc.f[2]; in _vega_unpack_float_span_rgba()
479 rgba[i][3] = uc.f[3]; in _vega_unpack_float_span_rgba()
494 util_pack_color_ub(r, g, b, a, PIPE_FORMAT_R32G32B32A32_FLOAT, &uc); in _vega_unpack_float_span_rgba()
495 rgba[i][0] = uc.f[0]; in _vega_unpack_float_span_rgba()
496 rgba[i][1] = uc.f[1]; in _vega_unpack_float_span_rgba()
497 rgba[i][2] = uc.f[2]; in _vega_unpack_float_span_rgba()
[all …]
/external/bzip2/
Ddecompress.c108 UChar uc; in BZ2_decompress() local
197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress()
198 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
200 GET_UCHAR(BZ_X_MAGIC_2, uc); in BZ2_decompress()
201 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress()
204 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
222 GET_UCHAR(BZ_X_BLKHDR_1, uc); in BZ2_decompress()
224 if (uc == 0x17) goto endhdr_2; in BZ2_decompress()
225 if (uc != 0x31) RETURN(BZ_DATA_ERROR); in BZ2_decompress()
[all …]
/external/valgrind/coregrind/
Dm_signals.c268 # define VG_UCONTEXT_INSTR_PTR(uc) ((uc)->uc_mcontext.eip) argument
269 # define VG_UCONTEXT_STACK_PTR(uc) ((uc)->uc_mcontext.esp) argument
270 # define VG_UCONTEXT_SYSCALL_SYSRES(uc) \ argument
272 VG_(mk_SysRes_x86_linux)( (uc)->uc_mcontext.eax )
273 # define VG_UCONTEXT_TO_UnwindStartRegs(srP, uc) \ argument
274 { (srP)->r_pc = (ULong)((uc)->uc_mcontext.eip); \
275 (srP)->r_sp = (ULong)((uc)->uc_mcontext.esp); \
276 (srP)->misc.X86.r_ebp = (uc)->uc_mcontext.ebp; \
280 # define VG_UCONTEXT_INSTR_PTR(uc) ((uc)->uc_mcontext.rip) argument
281 # define VG_UCONTEXT_STACK_PTR(uc) ((uc)->uc_mcontext.rsp) argument
[all …]
/external/valgrind/none/tests/amd64-darwin/
Dbug341419.c97 ucontext_t *uc = (ucontext_t *)vuc; in handle_signal() local
111 ASSERT_NE(uc, NULL); in handle_signal()
112 ASSERT_NE(uc->uc_mcontext, NULL); in handle_signal()
126 ASSERT_EQ(uc->uc_mcontext->__ss.__rax, 0xfeed01010101cafe); in handle_signal()
130 ASSERT_EQ(uc->uc_mcontext->__ss.__rdi, 0xbabe01010101cedeULL); in handle_signal()
131 ASSERT_EQ(uc->uc_mcontext->__ss.__rsi, 0xbabe02020202cedeULL); in handle_signal()
132 ASSERT_EQ(uc->uc_mcontext->__ss.__rdx, 0xbabe03030303cedeULL); in handle_signal()
133 ASSERT_EQ(uc->uc_mcontext->__ss.__rcx, 0xbabe04040404cedeULL); in handle_signal()
134 ASSERT_EQ(uc->uc_mcontext->__ss.__r8, 0xbabe05050505cedeULL); in handle_signal()
135 ASSERT_EQ(uc->uc_mcontext->__ss.__r9, 0xbabe06060606cedeULL); in handle_signal()
[all …]
/external/libedit/src/
Dunvis.c196 unsigned char uc = (unsigned char)c; in unvis() local
343 if (isoctal(uc)) { in unvis()
359 if (isoctal(uc)) { in unvis()
369 if (!isxdigit(uc)) in unvis()
373 if (isxdigit(uc)) { in unvis()
374 *cp = xtod(uc); in unvis()
386 if (isxdigit(uc)) { in unvis()
387 *cp = xtod(uc) | (*cp << 4); in unvis()
393 if (uc == '\n' || uc == '\r') { in unvis()
397 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis()
[all …]
/external/skia/tools/skiaserve/urlhandlers/
DPostHandler.cpp22 struct UploadContext* uc = reinterpret_cast<UploadContext*>(cls); in process_upload_data() local
25 uc->fStream.write(data, size); in process_upload_data()
38 UploadContext* uc = request->fUploadContext; in handle() local
41 if (!uc) { in handle()
43 uc = new UploadContext; in handle()
44 uc->connection = connection; in handle()
45 uc->fPostProcessor = MHD_create_post_processor(connection, kBufferSize, in handle()
46 &process_upload_data, uc); in handle()
47 SkASSERT(uc->fPostProcessor); in handle()
49 request->fUploadContext = uc; in handle()
[all …]
/external/libunwind/src/ia64/
DGinit_local.c32 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument
40 set_as_arg (struct cursor *c, unw_context_t *uc) in set_as_arg() argument
44 c->as_arg = &uc->sw; in set_as_arg()
46 c->as_arg = uc; in set_as_arg()
51 get_initial_stack_pointers (struct cursor *c, unw_context_t *uc, in get_initial_stack_pointers() argument
58 sol = (uc->sw.ar_pfs >> 7) & 0x7f; in get_initial_stack_pointers()
59 bspstore = uc->sw.ar_bspstore; in get_initial_stack_pointers()
60 *sp = uc->ksp; in get_initial_stack_pointers()
62 sol = (uc->uc_mcontext.sc_ar_pfs >> 7) & 0x7f; in get_initial_stack_pointers()
63 bspstore = uc->uc_mcontext.sc_ar_bsp; in get_initial_stack_pointers()
[all …]
/external/libvpx/libvpx/vp8/common/
Dloopfilter_filters.c16 typedef unsigned char uc; typedef
27 static signed char vp8_filter_mask(uc limit, uc blimit, in vp8_filter_mask()
28 uc p3, uc p2, uc p1, uc p0, in vp8_filter_mask()
29 uc q0, uc q1, uc q2, uc q3) in vp8_filter_mask()
43 static signed char vp8_hevmask(uc thresh, uc p1, uc p0, uc q0, uc q1) in vp8_hevmask()
51 static void vp8_filter(signed char mask, uc hev, uc *op1, in vp8_filter()
52 uc *op0, uc *oq0, uc *oq1) in vp8_filter()
161 static void vp8_mbfilter(signed char mask, uc hev, in vp8_mbfilter()
162 uc *op2, uc *op1, uc *op0, uc *oq0, uc *oq1, uc *oq2) in vp8_mbfilter()
282 static signed char vp8_simple_filter_mask(uc blimit, uc p1, uc p0, uc q0, uc q1) in vp8_simple_filter_mask()
[all …]
/external/vogar/test/vogar/
DScriptBuilderEscapingTest.java41 private final String uc; field in ScriptBuilderEscapingTest.SingleCharacterEscapeTest
45 this.uc = Character.toString(c); in SingleCharacterEscapeTest()
47 setName("Escape '" + uc + "' as '" + qc + "'"); in SingleCharacterEscapeTest()
52 assertEquals(qc, ScriptBuilder.escape(uc)); in runTest()
53 assertEquals("a" + qc, ScriptBuilder.escape("a" + uc)); in runTest()
54 assertEquals(qc + "b", ScriptBuilder.escape(uc + "b")); in runTest()
55 assertEquals("a" + qc + "b", ScriptBuilder.escape("a" + uc + "b")); in runTest()
57 ScriptBuilder.escape(uc + "a" + uc + uc + uc + "b" + uc)); in runTest()
/external/libunwind/src/x86_64/
DGos-linux.c106 x86_64_r_uc_addr (ucontext_t *uc, int reg) in x86_64_r_uc_addr() argument
113 case UNW_X86_64_R8: addr = &uc->uc_mcontext.gregs[REG_R8]; break; in x86_64_r_uc_addr()
114 case UNW_X86_64_R9: addr = &uc->uc_mcontext.gregs[REG_R9]; break; in x86_64_r_uc_addr()
115 case UNW_X86_64_R10: addr = &uc->uc_mcontext.gregs[REG_R10]; break; in x86_64_r_uc_addr()
116 case UNW_X86_64_R11: addr = &uc->uc_mcontext.gregs[REG_R11]; break; in x86_64_r_uc_addr()
117 case UNW_X86_64_R12: addr = &uc->uc_mcontext.gregs[REG_R12]; break; in x86_64_r_uc_addr()
118 case UNW_X86_64_R13: addr = &uc->uc_mcontext.gregs[REG_R13]; break; in x86_64_r_uc_addr()
119 case UNW_X86_64_R14: addr = &uc->uc_mcontext.gregs[REG_R14]; break; in x86_64_r_uc_addr()
120 case UNW_X86_64_R15: addr = &uc->uc_mcontext.gregs[REG_R15]; break; in x86_64_r_uc_addr()
121 case UNW_X86_64_RDI: addr = &uc->uc_mcontext.gregs[REG_RDI]; break; in x86_64_r_uc_addr()
[all …]
/external/valgrind/coregrind/m_sigframe/
Dsigframe-ppc64-linux.c109 struct vki_ucontext uc; member
173 frame->puc = &frame->uc; in VG_()
175 frame->uc.uc_flags = 0; in VG_()
176 frame->uc.uc_link = 0; in VG_()
196 frame->uc.uc_flags = 0; in VG_()
197 frame->uc.uc_link = 0; in VG_()
198 frame->uc.uc_stack = tst->altstack; in VG_()
199 frame->uc.uc_sigmask = tst->sig_mask; in VG_()
201 (Addr)(&frame->uc), sizeof(frame->uc) ); in VG_()
203 # define DO(gpr) frame->uc.uc_mcontext.gp_regs[VKI_PT_R0+gpr] \ in VG_()
[all …]

12345678910>>...14