Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DSimpleCharStream.java34 int bufsize; field in SimpleCharStream
63 char[] newbuffer = new char[bufsize + 2048]; in ExpandBuff()
64 int newbufline[] = new int[bufsize + 2048]; in ExpandBuff()
65 int newbufcolumn[] = new int[bufsize + 2048]; in ExpandBuff()
71 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff()
72 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
75 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); in ExpandBuff()
76 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
79 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); in ExpandBuff()
80 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
[all …]
/external/apache-commons-bcel/src/examples/Mini/
DASCII_CharStream.java29 static int bufsize; field in ASCII_CharStream
50 char[] newbuffer = new char[bufsize + 2048]; in ExpandBuff()
51 int newbufline[] = new int[bufsize + 2048]; in ExpandBuff()
52 int newbufcolumn[] = new int[bufsize + 2048]; in ExpandBuff()
58 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff()
60 bufsize - tokenBegin, bufpos); in ExpandBuff()
63 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); in ExpandBuff()
64 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
67 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); in ExpandBuff()
68 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DJavaCharStream.java79 int bufsize; field in JavaCharStream
106 char[] newbuffer = new char[bufsize + 2048]; in ExpandBuff()
107 int newbufline[] = new int[bufsize + 2048]; in ExpandBuff()
108 int newbufcolumn[] = new int[bufsize + 2048]; in ExpandBuff()
114 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff()
115 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
118 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); in ExpandBuff()
119 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
122 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); in ExpandBuff()
123 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
[all …]
/external/python/cpython2/Python/
Dgetargs.c425 int *levels, char *msgbuf, size_t bufsize, int toplevel, in converttuple() argument
453 PyOS_snprintf(msgbuf, bufsize, in converttuple()
463 PyOS_snprintf(msgbuf, bufsize, in converttuple()
479 strncpy(msgbuf, "is not retrievable", bufsize); in converttuple()
483 msgbuf, bufsize, freelist); in converttuple()
501 int *levels, char *msgbuf, size_t bufsize, PyObject **freelist) in convertitem() argument
509 bufsize, 0, freelist); in convertitem()
515 msgbuf, bufsize, freelist); in convertitem()
532 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) in converterr() argument
537 PyOS_snprintf(msgbuf, bufsize, in converterr()
[all …]
/external/python/cpython2/Lib/
Dpopen2.py40 def __init__(self, cmd, capturestderr=False, bufsize=-1): argument
65 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
67 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
70 self.childerr = os.fdopen(errout, 'r', bufsize)
119 def __init__(self, cmd, bufsize=-1): argument
132 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
134 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
141 def popen2(cmd, bufsize=-1, mode='t'): argument
148 w, r = os.popen2(cmd, mode, bufsize)
151 def popen3(cmd, bufsize=-1, mode='t'): argument
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DJavaCharStream.java77 int bufsize; field in JavaCharStream
103 char[] newbuffer = new char[bufsize + 2048]; in ExpandBuff()
104 int newbufline[] = new int[bufsize + 2048]; in ExpandBuff()
105 int newbufcolumn[] = new int[bufsize + 2048]; in ExpandBuff()
111 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); in ExpandBuff()
112 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
115 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); in ExpandBuff()
116 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
119 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); in ExpandBuff()
120 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
[all …]
/external/elfutils/libcpu/
Di386_data.h124 if (*d->bufcntp + 4 > d->bufsize) in data_prefix()
125 return *d->bufcntp + 4 - d->bufsize; in data_prefix()
167 size_t bufsize = d->bufsize; in general_mod$r_m() local
204 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
205 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
278 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
279 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
376 if (*bufcntp + (cp - tmpbuf) > bufsize) in general_mod$r_m()
377 return *bufcntp + (cp - tmpbuf) - bufsize; in general_mod$r_m()
401 size_t avail = d->bufsize - *bufcntp; in FCT_MOD$R_M()
[all …]
/external/tensorflow/tensorflow/core/util/
Dcuda_kernel_helper_test.cu.cc48 __global__ void Count1D(CudaLaunchConfig config, int bufsize, int* outbuf) { in Count1D() argument
53 atomicAdd(&outbuf[x % bufsize], 1); in Count1D()
56 __global__ void Count2D(Cuda2DLaunchConfig config, int bufsize, int* outbuf) { in Count2D() argument
66 atomicAdd(&outbuf[idx % bufsize], 1); in Count2D()
70 __global__ void Count3D(Cuda3DLaunchConfig config, int bufsize, int* outbuf) { in Count3D() argument
86 atomicAdd(&outbuf[idx % bufsize], 1); in Count3D()
134 const int bufsize = 1024; member in tensorflow::CudaLaunchConfigTest
140 cudaError_t err = cudaMallocManaged(&outbuf, sizeof(int) * bufsize); in SetUp()
156 cfg = GetCudaLaunchConfig(bufsize, d); \ in TEST_F()
163 0, d.stream(), cfg, bufsize, outbuf)); \ in TEST_F()
[all …]
/external/vboot_reference/tests/
Dvb21_host_key_tests.c44 uint32_t bufsize; in private_key_tests() local
93 TEST_SUCC(vb2_read_file(testfile, &buf, &bufsize), "Read key raw"); in private_key_tests()
97 buf2 = malloc(bufsize); in private_key_tests()
98 memcpy(buf2, buf, bufsize); in private_key_tests()
100 TEST_SUCC(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests()
104 memcpy(buf, buf2, bufsize); in private_key_tests()
106 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests()
111 memcpy(buf, buf2, bufsize); in private_key_tests()
113 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize), in private_key_tests()
117 memcpy(buf, buf2, bufsize); in private_key_tests()
[all …]
/external/libcups/cups/
Dppd-attr.c144 size_t bufsize) /* I - Size of string buffer */ in _ppdNormalizeMakeAndModel() argument
149 if (!make_and_model || !buffer || bufsize < 1) in _ppdNormalizeMakeAndModel()
170 strlcpy(buffer, make_and_model + 1, bufsize); in _ppdNormalizeMakeAndModel()
181 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in _ppdNormalizeMakeAndModel()
189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in _ppdNormalizeMakeAndModel()
197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in _ppdNormalizeMakeAndModel()
205 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in _ppdNormalizeMakeAndModel()
213 snprintf(buffer, bufsize, "EFI %s", make_and_model); in _ppdNormalizeMakeAndModel()
222 snprintf(buffer, bufsize, "Canon %s", make_and_model); in _ppdNormalizeMakeAndModel()
231 snprintf(buffer, bufsize, "HP %s", make_and_model); in _ppdNormalizeMakeAndModel()
[all …]
/external/ltp/testcases/kernel/io/aio/
Daio01.c79 size_t bufsize; /* Size of I/O, 8k default */ variable
116 bufsize = (bflag ? atoi(optb) : 8192); in main()
129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
268 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
300 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
314 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
[all …]
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_handle.cc47 VLOG(1) << "Initializing buffer=" << dest->bufsize << " bytes"; in MemInitDestination()
49 dest->pub.free_in_buffer = dest->bufsize; in MemInitDestination()
59 VLOG(1) << "Writing " << dest->bufsize << " bytes"; in MemEmptyOutputBuffer()
61 dest->dest->append(reinterpret_cast<char *>(dest->buffer), dest->bufsize); in MemEmptyOutputBuffer()
64 dest->pub.free_in_buffer = dest->bufsize; in MemEmptyOutputBuffer()
71 VLOG(1) << "Writing " << dest->bufsize - dest->pub.free_in_buffer << " bytes"; in MemTermDestination()
74 dest->bufsize - dest->pub.free_in_buffer); in MemTermDestination()
77 dest->datacount = dest->bufsize - dest->pub.free_in_buffer; in MemTermDestination()
81 void SetDest(j_compress_ptr cinfo, void *buffer, int bufsize) { in SetDest() argument
82 SetDest(cinfo, buffer, bufsize, nullptr); in SetDest()
[all …]
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest2.c74 int bufsize = BUFSIZE; variable
88 if ((buf1 = valloc(bufsize)) == 0) { in runtest()
92 if ((buf2 = valloc(bufsize)) == 0) { in runtest()
99 fillbuf(buf1, bufsize, i); in runtest()
100 if (lseek(fd_w, offset + iter * bufsize, SEEK_SET) < 0) { in runtest()
105 if (write(fd_w, buf1, bufsize) < bufsize) { in runtest()
109 if (lseek(fd_r, offset + iter * bufsize, SEEK_SET) < 0) { in runtest()
114 if (read(fd_r, buf2, bufsize) < bufsize) { in runtest()
118 if (bufcmp(buf1, buf2, bufsize) != 0) { in runtest()
148 if ((bufsize = atoi(optarg)) <= 0) { in main()
[all …]
Ddiotest3.c73 static int bufsize = BUFSIZE; /* Buffersize. Default 4k */ variable
99 seekoff = offset + bufsize * childnum; in runtest()
100 if ((buf1 = valloc(bufsize)) == 0) { in runtest()
104 if ((buf2 = valloc(bufsize)) == 0) { in runtest()
111 fillbuf(buf1, bufsize, childnum + i); in runtest()
116 if (write(fd_w, buf1, bufsize) < bufsize) { in runtest()
131 if (read(fd_r, buf2, bufsize) < bufsize) { in runtest()
135 if (bufcmp(buf1, buf2, bufsize) != 0) { in runtest()
241 if ((bufsize = atoi(optarg)) <= 0) { in main()
245 if (bufsize % 4096 != 0) { in main()
Ddiotest4.c193 int bufsize = BUFSIZE; in main() local
225 if ((buf0 = valloc(bufsize)) == NULL) { in main()
230 fillbuf(buf0, bufsize, (char)i); in main()
231 if (write(fd, buf0, bufsize) < 0) { in main()
237 if ((buf2 = valloc(bufsize)) == NULL) { in main()
248 count = bufsize; in main()
285 offset = bufsize * (fblocks + 10); in main()
286 count = bufsize; in main()
308 count = bufsize; in main()
315 count = bufsize; in main()
[all …]
Ddiotest1.c81 int bufsize = BUFSIZE; /* Buffer size. Default 8k */ in main() local
92 if ((bufsize = atoi(optarg)) <= 0) { in main()
96 if (bufsize % 4096 != 0) { in main()
133 buf = valloc(bufsize); in main()
139 fillbuf(buf, bufsize, (char)(i % 256)); in main()
140 SAFE_WRITE(cleanup, 1, fd1, buf, bufsize); in main()
147 while ((n = read(fd1, buf, bufsize)) > 0) { in main()
/external/libjpeg-turbo/
Djdatadst-tj.c44 size_t bufsize; member
96 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
102 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
109 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
110 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
113 dest->bufsize = nextsize; in empty_mem_output_buffer()
134 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
199 dest->bufsize = *outsize; in jpeg_mem_dest_tj()
200 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()
/external/dtc/tests/
Dopen_pack.c36 int oldsize, bufsize, packsize; in main() local
47 bufsize = oldsize * 2; in main()
49 buf = xmalloc(bufsize); in main()
51 memset(buf, 0, bufsize); in main()
54 err = fdt_open_into(fdt, fdt1, bufsize); in main()
69 oldsize, bufsize, packsize); in main()
Dmove_and_save.c37 int bufsize; in main() local
47 bufsize = fdt_totalsize(fdt) + shuntsize; in main()
48 buf = xmalloc(bufsize); in main()
51 err = fdt_move(fdt, fdt1, bufsize); in main()
59 err = fdt_move(fdt1, fdt2, bufsize-shuntsize); in main()
67 err = fdt_move(fdt2, fdt3, bufsize); in main()
/external/ltp/utils/sctp/lib/
Daddrs.c42 size_t bufsize = 4096; /*enough for most cases*/ in sctp_getaddrs() local
44 struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize); in sctp_getaddrs()
51 len = bufsize; in sctp_getaddrs()
64 if (bufsize > 128*1024) { in sctp_getaddrs()
70 new_buf = realloc(getaddrs, bufsize+4096); in sctp_getaddrs()
75 bufsize += 4096; in sctp_getaddrs()
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_read.c22 int bufsize = 4096; in main() local
30 buf = malloc(bufsize); in main()
32 printf("Malloc failed on %d\n", bufsize); in main()
47 while ((rd = read(fd, buf, bufsize)) == bufsize) ; in main()
/external/fec/
Dsumsq_test.c30 int bufsize = 2048; local
61 bufsize = atoi(optarg);
75 buf = (signed short *)calloc(bufsize,sizeof(signed short));
78 (void)sumsq(buf,bufsize);
85 length = (random() % bufsize) - offset;
88 for(i=0;i<bufsize;i++)
/external/dtc/libfdt/
Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) in fdt_create() argument
92 if (bufsize < sizeof(struct fdt_header)) in fdt_create()
95 memset(buf, 0, bufsize); in fdt_create()
100 fdt_set_totalsize(fdt, bufsize); in fdt_create()
105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create()
110 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument
120 if ((headsize + tailsize) > bufsize) in fdt_resize()
124 newtail = (char *)buf + bufsize - tailsize; in fdt_resize()
136 fdt_set_off_dt_strings(buf, bufsize); in fdt_resize()
137 fdt_set_totalsize(buf, bufsize); in fdt_resize()
/external/u-boot/scripts/dtc/libfdt/
Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) in fdt_create() argument
92 if (bufsize < sizeof(struct fdt_header)) in fdt_create()
95 memset(buf, 0, bufsize); in fdt_create()
100 fdt_set_totalsize(fdt, bufsize); in fdt_create()
105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create()
110 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument
120 if ((headsize + tailsize) > bufsize) in fdt_resize()
124 newtail = (char *)buf + bufsize - tailsize; in fdt_resize()
136 fdt_set_off_dt_strings(buf, bufsize); in fdt_resize()
137 fdt_set_totalsize(buf, bufsize); in fdt_resize()
/external/python/cpython3/Python/
Dgetargs.c500 int *levels, char *msgbuf, size_t bufsize, int toplevel, in converttuple() argument
529 PyOS_snprintf(msgbuf, bufsize, in converttuple()
541 PyOS_snprintf(msgbuf, bufsize, in converttuple()
546 PyOS_snprintf(msgbuf, bufsize, in converttuple()
563 strncpy(msgbuf, "is not retrievable", bufsize); in converttuple()
567 msgbuf, bufsize, freelist); in converttuple()
585 int *levels, char *msgbuf, size_t bufsize, freelist_t *freelist) in convertitem() argument
593 bufsize, 0, freelist); in convertitem()
599 msgbuf, bufsize, freelist); in convertitem()
613 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) in converterr() argument
[all …]

12345678910>>...17