Home
last modified time | relevance | path

Searched refs:uchar (Results 1 – 25 of 205) sorted by relevance

123456789

/external/llvm-project/clang/test/CodeGen/
Dubsan-promoted-arith.cpp3 typedef unsigned char uchar; typedef
21 uchar add2(uchar uc) { return uc + uc; } in add2()
37 uchar sub2(uchar uc) { return uc - uc; } in sub2()
55 uchar mul2(uchar uc) { return uc * uc; } in mul2()
81 uchar div2(uchar uc) { return uc / uc; } in div2()
103 uchar rem2(uchar uc) { return uc % uc; } in rem2()
119 uchar inc2(uchar uc) { return uc++ + (uchar)0; } in inc2()
127 void inc4(uchar uc) { uc++; } in inc4()
/external/OpenCL-CTS/test_conformance/profiling/
Dexecute.cpp28 #ifndef uchar
29 typedef unsigned char uchar; typedef
40 extern int writePPM( const char *filename, uchar *buf, int xsize, int ysize );
73 static void read_imagef( int x, int y, int w, int h, int nChannels, uchar *src, float *srcRgb ) in read_imagef()
90 static void write_imagef( uchar *dst, int x, int y, int w, int h, int nChannels, float *dstRgb ) in write_imagef()
98 dst[indx+i] = (uchar)dstRgb[i]; in write_imagef()
103 …, int m, int xsize, int ysize, int nChannels, const float *filter_weights, uchar *src, uchar *dst ) in basicFilterPixel()
129 static uchar *createImage( int elements, MTdata d) in createImage()
132 uchar *ptr = (uchar *)malloc( elements * sizeof( cl_uchar ) ); in createImage()
137 ptr[i] = (uchar)genrand_int32(d); in createImage()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DBidiFmwk.java200 char uchar; in buildPseudoTables() local
249 for (i = 0, uchar = 0x0030; i < 6; i++, uchar++) { in buildPseudoTables()
251 pseudoToUChar[c] = uchar; in buildPseudoTables()
252 UCharToPseudo[uchar & 0x00ff] = c; in buildPseudoTables()
255 for (i = 6, uchar = 0x0666; i < 10; i++, uchar++) { in buildPseudoTables()
257 pseudoToUChar[c] = uchar; in buildPseudoTables()
258 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
261 for (i = 10, uchar = 0x0631; i < 16; i++, uchar++) { in buildPseudoTables()
263 pseudoToUChar[c] = uchar; in buildPseudoTables()
264 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DBidiFmwk.java197 char uchar; in buildPseudoTables() local
246 for (i = 0, uchar = 0x0030; i < 6; i++, uchar++) { in buildPseudoTables()
248 pseudoToUChar[c] = uchar; in buildPseudoTables()
249 UCharToPseudo[uchar & 0x00ff] = c; in buildPseudoTables()
252 for (i = 6, uchar = 0x0666; i < 10; i++, uchar++) { in buildPseudoTables()
254 pseudoToUChar[c] = uchar; in buildPseudoTables()
255 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
258 for (i = 10, uchar = 0x0631; i < 16; i++, uchar++) { in buildPseudoTables()
260 pseudoToUChar[c] = uchar; in buildPseudoTables()
261 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
[all …]
/external/OpenCL-CTS/test_common/harness/
Dconversions.cpp387 typedef unsigned char uchar; typedef
398 uchar *ucharPtr; in convert_explicit_value()
460 DOWN_CAST_CASE(char, kUChar, uchar, saturate) in convert_explicit_value()
461 SIMPLE_CAST_CASE(char, kUnsignedChar, uchar) in convert_explicit_value()
483 ucharPtr = (uchar *)inRaw; in convert_explicit_value()
486 BOOL_CASE(uchar) in convert_explicit_value()
493 DOWN_CAST_CASE(uchar, kChar, char, saturate) in convert_explicit_value()
494 SIMPLE_CAST_CASE(uchar, kShort, short) in convert_explicit_value()
495 SIMPLE_CAST_CASE(uchar, kUShort, ushort) in convert_explicit_value()
496 SIMPLE_CAST_CASE(uchar, kUnsignedShort, ushort) in convert_explicit_value()
[all …]
/external/icu/icu4c/source/common/
Ducharstrie.cpp62 UCharsTrie::branchNext(const UChar *pos, int32_t length, int32_t uchar) { in branchNext() argument
71 if(uchar<*pos++) { in branchNext()
83 if(uchar==*pos++) { in branchNext()
113 if(uchar==*pos++) { in branchNext()
124 UCharsTrie::nextImpl(const UChar *pos, int32_t uchar) { in nextImpl() argument
128 return branchNext(pos, node, uchar); in nextImpl()
132 if(uchar==*pos++) { in nextImpl()
155 UCharsTrie::next(int32_t uchar) { in next() argument
163 if(uchar==*pos++) { in next()
174 return nextImpl(pos, uchar); in next()
[all …]
/external/OpenCL-CTS/test_conformance/spirv_new/spirv_asm/
Dop_spec_constant_uchar_simple.spvasm3212 %19 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
21 %uchar = OpTypeInt 8 0
23 %uchar_0 = OpSpecConstant %uchar 0
24 %_ptr_UniformConstant_uchar = OpTypePointer UniformConstant %uchar
26 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
32 %12 = OpLoad %uchar %output_value Aligned 1
33 %15 = OpLoad %uchar %spec_const_kernel_spec_constant_value Aligned 1
34 %add = OpIAdd %uchar %12 %15
Dop_spec_constant_uchar_simple.spvasm6412 %19 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
21 %uchar = OpTypeInt 8 0
23 %uchar_0 = OpSpecConstant %uchar 0
24 %_ptr_UniformConstant_uchar = OpTypePointer UniformConstant %uchar
26 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
32 %12 = OpLoad %uchar %output_value Aligned 1
33 %15 = OpLoad %uchar %spec_const_kernel_spec_constant_value Aligned 1
34 %add = OpIAdd %uchar %12 %15
Dop_spec_constant_false_simple.spvasm6413 %27 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
24 %uchar = OpTypeInt 8 0
26 %uchar_0 = OpConstant %uchar 0
27 %uchar_1 = OpConstant %uchar 1
32 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
43 %frombool = OpSelect %uchar %call %uchar_1 %uchar_0
47 %21 = OpLoad %uchar %output_value Aligned 1
50 %conv1 = OpUConvert %uchar %add
Dop_spec_constant_false_simple.spvasm3213 %27 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
24 %uchar = OpTypeInt 8 0
26 %uchar_0 = OpConstant %uchar 0
27 %uchar_1 = OpConstant %uchar 1
32 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
43 %frombool = OpSelect %uchar %call %uchar_1 %uchar_0
47 %21 = OpLoad %uchar %output_value Aligned 1
50 %conv1 = OpUConvert %uchar %add
Dop_spec_constant_true_simple.spvasm3213 %27 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
24 %uchar = OpTypeInt 8 0
26 %uchar_0 = OpConstant %uchar 0
27 %uchar_1 = OpConstant %uchar 1
32 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
43 %frombool = OpSelect %uchar %call %uchar_1 %uchar_0
47 %21 = OpLoad %uchar %output_value Aligned 1
50 %conv1 = OpUConvert %uchar %add
Dop_spec_constant_true_simple.spvasm6413 %27 = OpString "kernel_arg_type.spec_const_kernel.uchar*,"
24 %uchar = OpTypeInt 8 0
26 %uchar_0 = OpConstant %uchar 0
27 %uchar_1 = OpConstant %uchar 1
32 %_ptr_CrossWorkgroup_uchar = OpTypePointer CrossWorkgroup %uchar
43 %frombool = OpSelect %uchar %call %uchar_1 %uchar_0
47 %21 = OpLoad %uchar %output_value Aligned 1
50 %conv1 = OpUConvert %uchar %add
/external/angle/src/libANGLE/renderer/metal/shaders/
Dmtl_default_shaders_src_autogen.inc172 static inline Short bytesToShort(constant uchar *input, uint offset)
181 static inline Int bytesToInt(constant uchar *input, uint offset)
192 static inline void shortToBytes(Short val, uint offset, device uchar *output)
200 static inline void intToBytes(Int val, uint offset, device uchar *output)
209 static inline void floatToBytes(float val, uint offset, device uchar *output)
214 static inline void int24bitToBytes(uint val, uint offset, device uchar *output)
575 device uchar *buffer [[buffer(1)]])
593 buffer[bufferOffset + sample] = static_cast<uchar>(stencilPerSample);
602 buffer[options.dstBufferRowPitch * gIndices.y + gIndices.x] = static_cast<uchar>(stencil);
741 inline uchar getIndexAligned(constant uchar *input, uint offset, uint idx)
[all …]
Dcopy_buffer.metal80 constant uchar *buffer [[buffer(1)]], \
85 constant uchar *buffer
102 device uchar *buffer [[buffer(1)]] \
109 device uchar *buffer \
352 color.r = normalizedToFloat<uchar>(buffer[bufferOffset]);
353 color.g = normalizedToFloat<uchar>(buffer[bufferOffset + 1]);
354 color.b = normalizedToFloat<uchar>(buffer[bufferOffset + 2]);
477 color.rgb = float3(normalizedToFloat<uchar>(buffer[bufferOffset]));
483 buffer[bufferOffset] = floatToNormalized<uchar>(color.r);
489 buffer[bufferOffset] = floatToNormalized<uchar>(color.a);
[all …]
Dgen_indices.metal38 inline uchar getIndexAligned(constant uchar *input, uint offset, uint idx)
42 inline ushort getIndexUnalignedU16(constant uchar *input, uint offset, uint idx)
49 inline uint getIndexUnalignedU32(constant uchar *input, uint offset, uint idx)
61 constant uchar *input [[buffer(1)]],
66 uchar value = getIndexAligned(input, options.srcOffset, idx);
80 constant uchar *input
102 constant uchar *input
145 constant uchar *inputU8 [[function_constant(kUseSourceBufferU8)]],
177 constant uchar *inputU8
209 constant uchar *inputU8
/external/icu/icu4c/source/common/unicode/
Dutf_old.h247 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800) argument
314 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0) argument
316 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e) argument
318 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80) argument
534 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800) argument
537 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00) argument
562 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar) argument
565 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar) argument
568 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar) argument
809 #define UTF32_IS_SINGLE(uchar) 1 argument
[all …]
/external/icu/libicu/ndk_headers/unicode/
Dutf_old.h247 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800) argument
314 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0) argument
316 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e) argument
318 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80) argument
534 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800) argument
537 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00) argument
562 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar) argument
565 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar) argument
568 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar) argument
809 #define UTF32_IS_SINGLE(uchar) 1 argument
[all …]
/external/icu/libicu/cts_headers/unicode/
Dutf_old.h247 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800) argument
314 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0) argument
316 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e) argument
318 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80) argument
534 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800) argument
537 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00) argument
562 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar) argument
565 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar) argument
568 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar) argument
809 #define UTF32_IS_SINGLE(uchar) 1 argument
[all …]
/external/icu/libandroidicu/include/unicode/
Dutf_old.h247 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800) argument
314 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0) argument
316 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e) argument
318 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80) argument
534 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800) argument
537 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00) argument
562 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar) argument
565 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar) argument
568 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar) argument
809 #define UTF32_IS_SINGLE(uchar) 1 argument
[all …]
/external/llvm-project/libclc/generic/lib/integer/
Dadd_sat.cl6 _CLC_DECL uchar __clc_add_sat_u8(uchar, uchar);
19 _CLC_OVERLOAD _CLC_DEF uchar add_sat(uchar x, uchar y) {
67 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, uchar, add_sat, uchar, uchar)
Dmad_sat.cl8 _CLC_OVERLOAD _CLC_DEF uchar mad_sat(uchar x, uchar y, uchar z) {
66 _CLC_TERNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, uchar, mad_sat, uchar, uchar, uchar)
Dclz.cl5 return clz((ushort)(uchar)x) - 8;
8 _CLC_OVERLOAD _CLC_DEF uchar clz(uchar x) {
37 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, uchar, clz, uchar)
/external/libutf/
Drune.c80 c = *(uchar*)str; in charntorune()
95 c1 = *(uchar*)(str+1) ^ Tx; in charntorune()
117 c2 = *(uchar*)(str+2) ^ Tx; in charntorune()
135 c3 = *(uchar*)(str+3) ^ Tx; in charntorune()
178 c = *(uchar*)str; in chartorune()
188 c1 = *(uchar*)(str+1) ^ Tx; in chartorune()
205 c2 = *(uchar*)(str+2) ^ Tx; in chartorune()
220 c3 = *(uchar*)(str+3) ^ Tx; in chartorune()
344 int c = *(uchar*)str; in fullrune()
/external/bzip2/
Dunzcrash.c37 typedef unsigned char uchar; typedef
40 uchar inbuf[M_BLOCK];
41 uchar outbuf[M_BLOCK_OUT];
42 uchar zbuf[M_BLOCK + 600 + (M_BLOCK / 100)];
68 uchar mask = 1 << bitno; in flip_bit()
/external/python/cpython2/Objects/
Dobmalloc.c264 #undef uchar
265 #define uchar unsigned char /* assuming == 8 bits */ macro
277 typedef uchar block;
454 #define PTA(x) ((poolp )((uchar *)&(usedpools[2*(x)]) - 2*sizeof(block *)))
1367 const uchar *q = (const uchar *)p; in read_size_t()
1382 uchar *q = (uchar *)p + SST - 1; in write_size_t()
1386 *q = (uchar)(n & 0xff); in write_size_t()
1484 uchar *p; /* base address of malloc'ed block */ in _PyObject_DebugMallocApi()
1485 uchar *tail; /* p + 2*SST + nbytes == pointer to tail pad bytes */ in _PyObject_DebugMallocApi()
1494 p = (uchar *)PyObject_Malloc(total); in _PyObject_DebugMallocApi()
[all …]

123456789