Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 146) sorted by relevance

123456

/external/valgrind/none/tests/s390x/
Dcu14_1.c73 uint32_t buff[500]; /* Large so we con'don't have to worry about it */ variable
163 run_test(buff, sizeof buff, valid, sizeof valid); in convert_1_byte()
178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_1_byte()
216 run_test(buff, sizeof buff, valid, sizeof valid); in convert_2_bytes()
226 run_test(buff, sizeof buff, valid_if_not_m3, sizeof valid_if_not_m3); in convert_2_bytes()
246 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_2_bytes()
259 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_2_bytes()
280 run_test(buff, sizeof buff, e0, sizeof e0); in convert_3_bytes()
[all …]
Dcu12.c73 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
163 run_test(buff, sizeof buff, valid, sizeof valid); in convert_1_byte()
178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_1_byte()
216 run_test(buff, sizeof buff, valid, sizeof valid); in convert_2_bytes()
226 run_test(buff, sizeof buff, valid_if_not_m3, sizeof valid_if_not_m3); in convert_2_bytes()
246 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_2_bytes()
259 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_2_bytes()
280 run_test(buff, sizeof buff, e0, sizeof e0); in convert_3_bytes()
[all …]
Dcu12_1.c73 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
163 run_test(buff, sizeof buff, valid, sizeof valid); in convert_1_byte()
178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_1_byte()
216 run_test(buff, sizeof buff, valid, sizeof valid); in convert_2_bytes()
226 run_test(buff, sizeof buff, valid_if_not_m3, sizeof valid_if_not_m3); in convert_2_bytes()
246 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_2_bytes()
259 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_2_bytes()
280 run_test(buff, sizeof buff, e0, sizeof e0); in convert_3_bytes()
[all …]
Dcu14.c73 uint32_t buff[500]; /* Large so we con'don't have to worry about it */ variable
163 run_test(buff, sizeof buff, valid, sizeof valid); in convert_1_byte()
178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_1_byte()
198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_1_byte()
216 run_test(buff, sizeof buff, valid, sizeof valid); in convert_2_bytes()
226 run_test(buff, sizeof buff, valid_if_not_m3, sizeof valid_if_not_m3); in convert_2_bytes()
246 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); in convert_2_bytes()
259 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); in convert_2_bytes()
280 run_test(buff, sizeof buff, e0, sizeof e0); in convert_3_bytes()
[all …]
Dcu21.c62 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
137 run_test(buff, sizeof buff, NULL, 1); in main()
138 run_test(buff, sizeof buff, pattern1, 1); in main()
139 run_test(buff, sizeof buff, pattern2, 1); in main()
140 run_test(buff, sizeof buff, pattern3, 1); in main()
141 run_test(buff, sizeof buff, pattern4, 1); in main()
142 run_test(buff, sizeof buff, pattern4, 2); in main()
143 run_test(buff, sizeof buff, pattern4, 3); in main()
148 run_test(buff, sizeof buff, pattern1, 3); in main()
149 run_test(buff, sizeof buff, pattern2, 5); in main()
[all …]
Dcu21_1.c62 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
137 run_test(buff, sizeof buff, NULL, 1); in main()
138 run_test(buff, sizeof buff, pattern1, 1); in main()
139 run_test(buff, sizeof buff, pattern2, 1); in main()
140 run_test(buff, sizeof buff, pattern3, 1); in main()
141 run_test(buff, sizeof buff, pattern4, 1); in main()
142 run_test(buff, sizeof buff, pattern4, 2); in main()
143 run_test(buff, sizeof buff, pattern4, 3); in main()
148 run_test(buff, sizeof buff, pattern1, 3); in main()
149 run_test(buff, sizeof buff, pattern2, 5); in main()
[all …]
Dcu41.c63 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
140 run_test(buff, sizeof buff, NULL, 0); in main()
141 run_test(buff, sizeof buff, NULL, 1); in main()
142 run_test(buff, sizeof buff, NULL, 2); in main()
143 run_test(buff, sizeof buff, NULL, 3); in main()
144 run_test(buff, sizeof buff, pattern1, 0); in main()
145 run_test(buff, sizeof buff, pattern1, 1); in main()
146 run_test(buff, sizeof buff, pattern1, 2); in main()
147 run_test(buff, sizeof buff, pattern1, 3); in main()
152 run_test(buff, sizeof buff, pattern1, 4); /* 1 utf32 -> 1 1-byte utf8 */ in main()
[all …]
Dcu42.c52 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
130 run_test(buff, sizeof buff, NULL, 0); in main()
131 run_test(buff, sizeof buff, NULL, 1); in main()
132 run_test(buff, sizeof buff, NULL, 2); in main()
133 run_test(buff, sizeof buff, NULL, 3); in main()
134 run_test(buff, sizeof buff, pattern2, 0); in main()
135 run_test(buff, sizeof buff, pattern2, 1); in main()
136 run_test(buff, sizeof buff, pattern2, 2); in main()
137 run_test(buff, sizeof buff, pattern2, 3); in main()
142 run_test(buff, sizeof buff, pattern2, 4); /* 1 utf32 -> 1 utf16 */ in main()
[all …]
Dcu24.c51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
131 run_test(buff, sizeof buff, NULL, 1); in main()
132 run_test(buff, sizeof buff, pattern1, 1); in main()
133 run_test(buff, sizeof buff, pattern2, 1); in main()
134 run_test(buff, sizeof buff, pattern2, 2); in main()
135 run_test(buff, sizeof buff, pattern2, 3); in main()
140 run_test(buff, sizeof buff, pattern1, 3); in main()
141 run_test(buff, sizeof buff, pattern1, 5); in main()
142 run_test(buff, sizeof buff, pattern2, 2); in main()
143 run_test(buff, sizeof buff, pattern2, 5); in main()
[all …]
Dcu24_1.c51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
131 run_test(buff, sizeof buff, NULL, 1); in main()
132 run_test(buff, sizeof buff, pattern1, 1); in main()
133 run_test(buff, sizeof buff, pattern2, 1); in main()
134 run_test(buff, sizeof buff, pattern2, 2); in main()
135 run_test(buff, sizeof buff, pattern2, 3); in main()
140 run_test(buff, sizeof buff, pattern1, 3); in main()
141 run_test(buff, sizeof buff, pattern1, 5); in main()
142 run_test(buff, sizeof buff, pattern2, 2); in main()
143 run_test(buff, sizeof buff, pattern2, 5); in main()
[all …]
Dtr.c8 uint8_t buff[40]; variable
24 tr(tran_table, buff, len); in run_test()
27 printf("%c", buff[i]); in run_test()
35 run_test((char *)&touppercase, &buff, 0); in main()
36 run_test((char *)&touppercase, &buff, 0); in main()
39 memset(buff, 'a', 1); in main()
40 run_test((char *)&touppercase, &buff, 1); in main()
42 memcpy(buff, "abcdefgh", 8); in main()
43 run_test((char *)&touppercase, &buff, 3); in main()
44 run_test((char *)&touppercase, &buff, 3); in main()
[all …]
Dtre.c17 uint8_t buff[40]; variable
61 printf("%c", buff[i]); in run_test()
72 run_test((char *)&touppercase, &buff, 0, 0x0); in main()
73 run_test((char *)&touppercase, &buff, 0, 'b'); in main()
76 memset(buff, 'a', 1); in main()
77 run_test((char *)&touppercase, &buff, 1, 'a'); //cc = 1 in main()
78 run_test((char *)&touppercase, &buff, 1, 'b'); in main()
80 memcpy(buff, "abcdefgh", 8); in main()
81 run_test((char *)&touppercase, &buff, 3, 'a'); //cc = 1 in main()
82 run_test((char *)&touppercase, &buff, 3, 'f'); //cc = 0 in main()
[all …]
Dcksm.c19 cksm_by_insn(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_insn() argument
21 const uint32_t *init_addr = buff; in cksm_by_insn()
26 register uint64_t reg2 asm("2") = (uint64_t) buff; in cksm_by_insn()
60 cksm_by_hand(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_hand() argument
71 v64 += buff[n]; in cksm_by_hand()
74 sum = sum + buff[n] + 1; in cksm_by_hand()
76 sum = sum + buff[n]; in cksm_by_hand()
87 final = buff[n] & 0xFF000000; in cksm_by_hand()
91 final = buff[n] & 0xFFFF0000; in cksm_by_hand()
95 final = buff[n] & 0xFFFFFF00; in cksm_by_hand()
[all …]
/external/tagsoup/src/org/ccil/cowan/tagsoup/
DPYXScanner.java48 char[] buff = null; in scan() local
52 if (buff == null || buff.length < size) { in scan()
53 buff = new char[size]; in scan()
55 s.getChars(0, size, buff, 0); in scan()
56 switch (buff[0]) { in scan()
59 h.stagc(buff, 0, 0); in scan()
62 h.gi(buff, 1, size - 1); in scan()
67 h.stagc(buff, 0, 0); in scan()
70 h.etag(buff, 1, size - 1); in scan()
74 h.stagc(buff, 0, 0); in scan()
[all …]
DPYXWriter.java37 public void adup(char[] buff, int offset, int length) throws SAXException { in adup() argument
42 public void aname(char[] buff, int offset, int length) throws SAXException { in aname() argument
44 theWriter.write(buff, offset, length); in aname()
46 attrName = new String(buff, offset, length); in aname()
49 public void aval(char[] buff, int offset, int length) throws SAXException { in aval() argument
50 theWriter.write(buff, offset, length); in aval()
55 public void cmnt(char [] buff, int offset, int length) throws SAXException { in cmnt() argument
61 public void entity(char[] buff, int offset, int length) throws SAXException { } in entity() argument
65 public void eof(char[] buff, int offset, int length) throws SAXException { in eof() argument
69 public void etag(char[] buff, int offset, int length) throws SAXException { in etag() argument
[all …]
DScanHandler.java29 public void adup(char[] buff, int offset, int length) throws SAXException; in adup() argument
35 public void aname(char[] buff, int offset, int length) throws SAXException; in aname() argument
41 public void aval(char[] buff, int offset, int length) throws SAXException; in aval() argument
46 public void cdsect(char[] buff, int offset, int length) throws SAXException; in cdsect() argument
52 public void decl(char[] buff, int offset, int length) throws SAXException; in decl() argument
58 public void entity(char[] buff, int offset, int length) throws SAXException; in entity() argument
64 public void eof(char[] buff, int offset, int length) throws SAXException; in eof() argument
70 public void etag(char[] buff, int offset, int length) throws SAXException; in etag() argument
76 public void gi(char[] buff, int offset, int length) throws SAXException; in gi() argument
82 public void pcdata(char[] buff, int offset, int length) throws SAXException; in pcdata() argument
[all …]
DParser.java529 public void adup(char[] buff, int offset, int length) throws SAXException { in adup() argument
535 public void aname(char[] buff, int offset, int length) throws SAXException { in aname() argument
539 theAttributeName = makeName(buff, offset, length).toLowerCase(Locale.ROOT); in aname()
543 public void aval(char[] buff, int offset, int length) throws SAXException { in aval() argument
545 String value = new String(buff, offset, length); in aval()
606 public void entity(char[] buff, int offset, int length) throws SAXException { in entity() argument
607 theEntity = lookupEntity(buff, offset, length); in entity()
612 private int lookupEntity(char[] buff, int offset, int length) { in lookupEntity() argument
617 if (buff[offset] == '#') { in lookupEntity()
618 if (length > 1 && (buff[offset+1] == 'x' in lookupEntity()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_printf.cc34 static int AppendChar(char **buff, const char *buff_end, char c) { in AppendChar() argument
35 if (*buff < buff_end) { in AppendChar()
36 **buff = c; in AppendChar()
37 (*buff)++; in AppendChar()
45 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value, in AppendNumber() argument
57 result += AppendChar(buff, buff_end, '-'); in AppendNumber()
75 result += AppendChar(buff, buff_end, c); in AppendNumber()
77 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-'); in AppendNumber()
80 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit in AppendNumber()
86 static int AppendUnsigned(char **buff, const char *buff_end, u64 num, u8 base, in AppendUnsigned() argument
[all …]
Dsanitizer_symbolizer_libcdep.cc31 char *buff; in ExtractInt() local
32 const char *ret = ExtractToken(str, delims, &buff); in ExtractInt()
33 if (buff != 0) { in ExtractInt()
34 *result = (int)internal_atoll(buff); in ExtractInt()
36 InternalFree(buff); in ExtractInt()
41 char *buff; in ExtractUptr() local
42 const char *ret = ExtractToken(str, delims, &buff); in ExtractUptr()
43 if (buff != 0) { in ExtractUptr()
44 *result = (uptr)internal_atoll(buff); in ExtractUptr()
46 InternalFree(buff); in ExtractUptr()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DBufferUtils.java166 FloatBuffer buff = createFloatBuffer(3 * data.length); in createFloatBuffer() local
169 buff.put(data[x].x).put(data[x].y).put(data[x].z); in createFloatBuffer()
171 buff.put(0).put(0).put(0); in createFloatBuffer()
174 buff.flip(); in createFloatBuffer()
175 return buff; in createFloatBuffer()
188 FloatBuffer buff = createFloatBuffer(4 * data.length); in createFloatBuffer() local
191buff.put(data[x].getX()).put(data[x].getY()).put(data[x].getZ()).put(data[x].getW()); in createFloatBuffer()
193 buff.put(0).put(0).put(0); in createFloatBuffer()
196 buff.flip(); in createFloatBuffer()
197 return buff; in createFloatBuffer()
[all …]
/external/libedit/src/
Dchartype.c210 static Char *buff = NULL; in ct_visual_string() local
218 if (!buff) { in ct_visual_string()
220 buff = el_malloc(buffsize * sizeof(*buff)); in ct_visual_string()
222 dst = buff; in ct_visual_string()
224 used = ct_visual_char(dst, buffsize - (size_t)(dst - buff), *s); in ct_visual_string()
226 used = dst - buff; in ct_visual_string()
228 p = el_realloc(buff, buffsize * sizeof(*buff)); in ct_visual_string()
231 buff = p; in ct_visual_string()
232 dst = buff + used; in ct_visual_string()
239 if (dst >= (buff + buffsize)) { /* sigh */ in ct_visual_string()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/
DAbstractBlenderHelper.java108 ByteBuffer buff = BufferUtils.createByteBuffer(4 * data.size()); in createByteBuffer() local
111 buff.put(v[0]).put(v[1]).put(v[2]).put(v[3]); in createByteBuffer()
113 buff.put((byte)0).put((byte)0).put((byte)0).put((byte)0); in createByteBuffer()
116 buff.flip(); in createByteBuffer()
117 return buff; in createByteBuffer()
130 FloatBuffer buff = BufferUtils.createFloatBuffer(4 * data.size()); in createFloatBuffer() local
133 buff.put(v[0]).put(v[1]).put(v[2]).put(v[3]); in createFloatBuffer()
135 buff.put(0).put(0).put(0).put(0); in createFloatBuffer()
138 buff.flip(); in createFloatBuffer()
139 return buff; in createFloatBuffer()
/external/toybox/toys/posix/
Dcut.c127 char *buff, *pfield = 0, *delimiter = TT.delim; in do_fcut() local
138 if (!(buff = get_line(fd))) break; in do_fcut()
141 if (strrchr(buff, (int)delimiter[0]) == NULL) { in do_fcut()
143 if (!(toys.optflags & FLAG_s)) xputs(buff); in do_fcut()
147 pfield = xzalloc(strlen(buff) + 1); in do_fcut()
151 while (cpos < TT.nelem && buff) { in do_fcut()
158 while (buff) { in do_fcut()
161 field = strsep(&buff, delimiter); in do_fcut()
175 if ((temp_node->end < 0) || !buff) break; in do_fcut()
188 char *buff; in do_bccut() local
[all …]
/external/toybox/toys/pending/
Dgetty.c43 char buff[128];
188 size = readall(STDIN_FILENO, TT.buff, sizeof(TT.buff)-1); in sense_baud()
190 for (ptr = TT.buff; ptr < TT.buff+size; ptr++) { in sense_baud()
221 char buff[20] = {0,}; in write_issue() local
227 while ((size = readall(fd, buff, 1)) > 0) { in write_issue()
228 char *ch = buff; in write_issue()
231 if (readall(fd, buff, 1) <= 0) perror_exit("readall"); in write_issue()
250 TT.buff[0] = getchar(); in read_login_name()
251 if (!TT.buff[0] && TT.sc > 1) return 0; // Switch speed in read_login_name()
252 if (TT.buff[0] == '\n') continue; in read_login_name()
[all …]
/external/libmtp/examples/
Dreset.c29 char buff[2]; in prompt() local
33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) { in prompt()
41 if (buff[0] == 'y') { in prompt()
43 } else if (buff[0] == 'n') { in prompt()

123456