/third_party/libsnd/tests/ |
D | string_test.c | 217 { const char *cptr ; in string_start_end_test() local 262 cptr = sf_get_string (file, SF_STR_TITLE) ; in string_start_end_test() 263 if (cptr == NULL || strcmp (filename, cptr) != 0) in string_start_end_test() 266 printf (" Bad filename : %s\n", cptr) ; in string_start_end_test() 269 cptr = sf_get_string (file, SF_STR_COPYRIGHT) ; in string_start_end_test() 270 if (cptr == NULL || strcmp (copyright, cptr) != 0) in string_start_end_test() 273 printf (" Bad copyright : %s\n", cptr) ; in string_start_end_test() 276 cptr = sf_get_string (file, SF_STR_SOFTWARE) ; in string_start_end_test() 277 if (cptr == NULL || strstr (cptr, software) != cptr) in string_start_end_test() 280 printf (" Bad software : %s\n", cptr) ; in string_start_end_test() [all …]
|
D | peak_chunk_test.c | 259 { char *cptr ; in check_logged_peaks() local 270 cptr = strstr (buffer, "Channels") ; in check_logged_peaks() 271 if (cptr && sscanf (cptr, "Channels : %d", &k) == 1) in check_logged_peaks() 273 else if (cptr && sscanf (cptr, "Channels / frame : %d", &k) == 1) in check_logged_peaks() 285 if (! (cptr = strstr (buffer, "Ch Position Value"))) in check_logged_peaks() 291 { if (! (cptr = strchr (cptr, '\n'))) in check_logged_peaks() 295 if (sscanf (cptr, "%d %d %f", &chan, &position, &value) != 3) in check_logged_peaks() 310 cptr ++ ; /* Move past current newline. */ in check_logged_peaks()
|
/third_party/optimized-routines/networking/ |
D | chksum.c | 47 const char *cptr = ptr; in __chksum() local 50 uint64_t h0 = load32(cptr + 0); in __chksum() 51 uint64_t h1 = load32(cptr + 4); in __chksum() 52 uint64_t h2 = load32(cptr + 8); in __chksum() 53 uint64_t h3 = load32(cptr + 12); in __chksum() 55 cptr += 16; in __chksum() 63 sum += load32(cptr); in __chksum() 64 cptr += 4; in __chksum() 71 sum += load16(cptr); in __chksum() 72 cptr += 2; in __chksum() [all …]
|
D | chksum_common.h | 84 const unsigned char *cptr = ptr; in slurp_small() local 88 sum += load32(cptr); in slurp_small() 89 cptr += 4; in slurp_small() 94 sum += load16(cptr); in slurp_small() 95 cptr += 2; in slurp_small() 99 sum += (uint8_t) *cptr; in slurp_small()
|
/third_party/python/Include/internal/ |
D | pycore_bytes_methods.h | 13 extern PyObject* _Py_bytes_isspace(const char *cptr, Py_ssize_t len); 14 extern PyObject* _Py_bytes_isalpha(const char *cptr, Py_ssize_t len); 15 extern PyObject* _Py_bytes_isalnum(const char *cptr, Py_ssize_t len); 16 extern PyObject* _Py_bytes_isascii(const char *cptr, Py_ssize_t len); 17 extern PyObject* _Py_bytes_isdigit(const char *cptr, Py_ssize_t len); 18 extern PyObject* _Py_bytes_islower(const char *cptr, Py_ssize_t len); 19 extern PyObject* _Py_bytes_isupper(const char *cptr, Py_ssize_t len); 20 extern PyObject* _Py_bytes_istitle(const char *cptr, Py_ssize_t len); 23 extern void _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len); 24 extern void _Py_bytes_upper(char *result, const char *cptr, Py_ssize_t len);
|
/third_party/libsnd/src/ |
D | nist.c | 124 char str [64], *cptr ; in nist_read_header() local 134 if ((cptr = strstr (psf_header, "end_head"))) in nist_read_header() 135 { cptr += strlen ("end_head") + 1 ; in nist_read_header() 136 cptr [0] = 0 ; in nist_read_header() 157 if ((cptr = strstr (psf_header, "sample_coding -s"))) in nist_read_header() 158 { sscanf (cptr, "sample_coding -s%d %63s", &count, str) ; in nist_read_header() 174 if ((cptr = strstr (psf_header, "channel_count -i ")) != NULL) in nist_read_header() 175 sscanf (cptr, "channel_count -i %d", &(psf->sf.channels)) ; in nist_read_header() 177 if ((cptr = strstr (psf_header, "sample_rate -i ")) != NULL) in nist_read_header() 178 sscanf (cptr, "sample_rate -i %d", &(psf->sf.samplerate)) ; in nist_read_header() [all …]
|
D | double64.c | 284 double64_be_read (const unsigned char *cptr) in double64_be_read() argument 288 negative = (cptr [0] & 0x80) ? 1 : 0 ; in double64_be_read() 289 exponent = ((cptr [0] & 0x7F) << 4) | ((cptr [1] >> 4) & 0xF) ; in double64_be_read() 292 upper = (((cptr [1] & 0xF) << 24) | (cptr [2] << 16) | (cptr [3] << 8) | cptr [4]) ; in double64_be_read() 293 lower = (cptr [5] << 16) | (cptr [6] << 8) | cptr [7] ; in double64_be_read() 317 double64_le_read (const unsigned char *cptr) in double64_le_read() argument 321 negative = (cptr [7] & 0x80) ? 1 : 0 ; in double64_le_read() 322 exponent = ((cptr [7] & 0x7F) << 4) | ((cptr [6] >> 4) & 0xF) ; in double64_le_read() 325 upper = ((cptr [6] & 0xF) << 24) | (cptr [5] << 16) | (cptr [4] << 8) | cptr [3] ; in double64_le_read() 326 lower = (cptr [2] << 16) | (cptr [1] << 8) | cptr [0] ; in double64_le_read()
|
D | aiff.c | 404 char *cptr ; in aiff_read_header() local 521 cptr = ubuf.cbuf ; in aiff_read_header() 530 snprintf (cptr, sizeof (ubuf.scbuf), " %2d %-12" PRId64 " %g\n", in aiff_read_header() 532 cptr [sizeof (ubuf.scbuf) - 1] = 0 ; in aiff_read_header() 533 psf_log_printf (psf, "%s", cptr) ; in aiff_read_header() 592 cptr = ubuf.cbuf ; in aiff_read_header() 593 psf_binheader_readf (psf, "b", cptr, chunk_size + (chunk_size & 1)) ; in aiff_read_header() 594 cptr [chunk_size] = 0 ; in aiff_read_header() 596 psf_sanitize_string (cptr, chunk_size) ; in aiff_read_header() 598 psf_log_printf (psf, " %M : %s\n", marker, cptr) ; in aiff_read_header() [all …]
|
D | paf.c | 485 unsigned char *cptr ; in paf24_read_block() local 506 …cptr = ((unsigned char *) ppaf24->block) + PAF24_BLOCK_SIZE * channel + 3 * (k / ppaf24->channels)… in paf24_read_block() 507 ppaf24->samples [k] = (cptr [0] << 8) | (cptr [1] << 16) | (((unsigned) cptr [2]) << 24) ; in paf24_read_block() 638 unsigned char *cptr ; in paf24_write_block() local 645 …cptr = ((unsigned char *) ppaf24->block) + PAF24_BLOCK_SIZE * channel + 3 * (k / ppaf24->channels)… in paf24_write_block() 647 cptr [0] = nextsample ; in paf24_write_block() 648 cptr [1] = nextsample >> 8 ; in paf24_write_block() 649 cptr [2] = nextsample >> 16 ; in paf24_write_block() 660 …cptr = ((unsigned char *) ppaf24->block) + PAF24_BLOCK_SIZE * channel + 3 * (k / ppaf24->channels)… in paf24_write_block() 662 cptr [0] = nextsample ; in paf24_write_block() [all …]
|
D | float32.c | 255 float32_be_read (const unsigned char *cptr) in float32_be_read() argument 259 negative = cptr [0] & 0x80 ; in float32_be_read() 260 exponent = ((cptr [0] & 0x7F) << 1) | ((cptr [1] & 0x80) ? 1 : 0) ; in float32_be_read() 261 mantissa = ((cptr [1] & 0x7F) << 16) | (cptr [2] << 8) | (cptr [3]) ; in float32_be_read() 283 float32_le_read (const unsigned char *cptr) in float32_le_read() argument 287 negative = cptr [3] & 0x80 ; in float32_le_read() 288 exponent = ((cptr [3] & 0x7F) << 1) | ((cptr [2] & 0x80) ? 1 : 0) ; in float32_le_read() 289 mantissa = ((cptr [2] & 0x7F) << 16) | (cptr [1] << 8) | (cptr [0]) ; in float32_le_read()
|
D | caf.c | 931 const char * cptr ; in caf_write_strings() local 943 if ((cptr = psf_get_string (psf, psf->strings.data [k].type)) == NULL) in caf_write_strings() 948 string_count += put_key_value (&buf, "title", cptr) ; in caf_write_strings() 951 string_count += put_key_value (&buf, "copyright", cptr) ; in caf_write_strings() 954 string_count += put_key_value (&buf, "software", cptr) ; in caf_write_strings() 957 string_count += put_key_value (&buf, "artist", cptr) ; in caf_write_strings() 960 string_count += put_key_value (&buf, "comment", cptr) ; in caf_write_strings() 963 string_count += put_key_value (&buf, "date", cptr) ; in caf_write_strings() 966 string_count += put_key_value (&buf, "album", cptr) ; in caf_write_strings() 969 string_count += put_key_value (&buf, "license", cptr) ; in caf_write_strings() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/malloc/ |
D | realloc.c | 66 char *cptr = (char *)malloc(RELLOCTLEN); in realloc_0400() local 67 void *ret = realloc(cptr, RELLOCTLEN + RELLOCTLEN); in realloc_0400() 78 char *cptr = (char *)malloc(RELLOCTLEN); in realloc_0500() local 79 void *ret = realloc(cptr, RELLOCTLEN); in realloc_0500() 90 char *cptr = (char *)malloc(RELLOCTLEN); in realloc_0600() local 91 void *ret = realloc(cptr, RELLOCTLEN / 2); in realloc_0600()
|
/third_party/python/Objects/ |
D | bytes_methods.c | 13 _Py_bytes_isspace(const char *cptr, Py_ssize_t len) in _Py_bytes_isspace() argument 16 = (const unsigned char *) cptr; in _Py_bytes_isspace() 43 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len) in _Py_bytes_isalpha() argument 46 = (const unsigned char *) cptr; in _Py_bytes_isalpha() 73 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len) in _Py_bytes_isalnum() argument 76 = (const unsigned char *) cptr; in _Py_bytes_isalnum() 114 _Py_bytes_isascii(const char *cptr, Py_ssize_t len) in _Py_bytes_isascii() argument 116 const char *p = cptr; in _Py_bytes_isascii() 154 _Py_bytes_isdigit(const char *cptr, Py_ssize_t len) in _Py_bytes_isdigit() argument 157 = (const unsigned char *) cptr; in _Py_bytes_isdigit() [all …]
|
/third_party/cups-filters/filter/ |
D | imagetoraster.c | 1716 *cptr, /* Pointer into cyan */ in format_CMY() local 1829 cptr = ptr; in format_CMY() 1842 *cptr ^= bitmask; in format_CMY() 1853 cptr ++; in format_CMY() 1867 *cptr ^= (bitmask & OnPixels[*r0++]); in format_CMY() 1869 *cptr ^= (bitmask & OffPixels[*r0++]); in format_CMY() 1887 cptr ++; in format_CMY() 1901 *cptr ^= (bitmask & OnPixels[*r0++]); in format_CMY() 1903 *cptr ^= (bitmask & OffPixels[*r0++]); in format_CMY() 1921 cptr ++; in format_CMY() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/io_uring/ |
D | io_uring01.c | 67 static void *cptr; variable 112 cptr = SAFE_MMAP(0, cptr_size, in setup_io_uring_test() 118 cring->head = cptr + p.cq_off.head; in setup_io_uring_test() 119 cring->tail = cptr + p.cq_off.tail; in setup_io_uring_test() 120 cring->ring_mask = cptr + p.cq_off.ring_mask; in setup_io_uring_test() 121 cring->ring_entries = cptr + p.cq_off.ring_entries; in setup_io_uring_test() 122 cring->cqes = cptr + p.cq_off.cqes; in setup_io_uring_test() 235 SAFE_MUNMAP(cptr, cptr_size); in cleanup_io_uring_test()
|
/third_party/alsa-lib/test/ |
D | pcm.c | 254 int err, cptr; in write_loop() local 259 cptr = period_size; in write_loop() 260 while (cptr > 0) { in write_loop() 261 err = snd_pcm_writei(handle, ptr, cptr); in write_loop() 272 cptr -= err; in write_loop() 302 int err, count, cptr, init; in write_and_poll_loop() local 342 cptr = period_size; in write_and_poll_loop() 343 while (cptr > 0) { in write_and_poll_loop() 344 err = snd_pcm_writei(handle, ptr, cptr); in write_and_poll_loop() 356 cptr -= err; in write_and_poll_loop() [all …]
|
/third_party/libsnd/programs/ |
D | sndfile-salvage.c | 233 { char buffer [8192], *cptr ; in find_data_offset() local 266 cptr = memchr (buffer, target [0], rlen - slen) ; in find_data_offset() 267 if (cptr && memcmp (cptr, target, slen) == 0) in find_data_offset() 268 offset = cptr - buffer ; in find_data_offset()
|
D | sndfile-deinterleave.c | 70 char pathname [512], ext [32], *cptr ; in main() local 112 if ((cptr = strrchr (pathname, '.')) == NULL) in main() 115 { snprintf (ext, sizeof (ext), "%s", cptr) ; in main() 116 cptr [0] = 0 ; in main()
|
/third_party/skia/third_party/externals/spirv-cross/samples/cpp/ |
D | atomics.cpp | 55 void *cptr = &counter; in main() local 63 spirv_cross_set_resource(shader, 0, 2, &cptr, sizeof(cptr)); in main()
|
D | multiply.cpp | 56 void *cptr = c; in main() local 64 spirv_cross_set_resource(shader, 0, 2, &cptr, sizeof(cptr)); in main()
|
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/ |
D | gstamc.c | 800 guint8 *cptr = NULL, *vptr = NULL; in gst_amc_color_format_copy() local 804 src = &cptr; in gst_amc_color_format_copy() 808 dest = &cptr; in gst_amc_color_format_copy() 818 cptr = cbuffer->data + cbuffer_info->offset; in gst_amc_color_format_copy() 855 cptr = cbuffer->data + cbuffer_info->offset; in gst_amc_color_format_copy() 858 cptr += cinfo->crop_top * stride; in gst_amc_color_format_copy() 859 cptr += cinfo->crop_left; in gst_amc_color_format_copy() 863 cptr += slice_height * stride; in gst_amc_color_format_copy() 868 cptr += cinfo->crop_top / 2 * c_stride; in gst_amc_color_format_copy() 869 cptr += cinfo->crop_left / 2; in gst_amc_color_format_copy() [all …]
|
/third_party/selinux/libsepol/src/ |
D | context.h | 13 context_struct_t ** cptr, 24 context_struct_t ** cptr,
|
D | context.c | 145 context_struct_t ** cptr, in context_from_record() argument 220 *cptr = scontext; in context_from_record() 293 context_struct_t ** cptr, in context_from_string() argument 319 if (context_from_record(handle, policydb, cptr, ctx_record) < 0) in context_from_string()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | growfiles.c | 395 char *cptr; /* temp char pointer */ in main() local 809 cptr = optarg; in main() 810 for (Nseeds = 1; *cptr; Nseeds++) { in main() 811 if ((filename = strchr(cptr, ',')) == NULL) in main() 813 cptr = filename; in main() 814 cptr++; in main() 822 filename = cptr = optarg; in main() 823 for (Nseeds = 0; *cptr; Nseeds++) { in main() 824 if ((filename = strchr(cptr, ',')) == NULL) { in main() 825 if (sscanf(cptr, "%i", &Seeds[Nseeds]) < in main() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults_test.cc | 143 const int* cptr = ptr; in TYPED_TEST() local 147 EXPECT_TRUE(eq(ptr, cptr)); in TYPED_TEST() 152 EXPECT_FALSE(eq(&dummy, cptr)); in TYPED_TEST() 193 const int* cptr = ptr; in TYPED_TEST() local 197 EXPECT_EQ(hash(ptr), hash(cptr)); in TYPED_TEST() 202 EXPECT_NE(hash(&dummy), hash(cptr)); in TYPED_TEST()
|