/third_party/boost/libs/nowide/test/ |
D | test_fstream_cxx11.cpp | 19 namespace nw = boost::nowide; 23 nw::ofstream f(filename, std::ios::trunc); in create_file() 37 nw::ifstream f(filename); in get_file_contents() 41 nw::ifstream make_ifstream(const std::string& filename) in make_ifstream() 43 nw::ifstream f(filename); in make_ifstream() 56 nw::ifstream f = make_ifstream(filename); in test_ifstream() 64 nw::ifstream f; in test_ifstream() 66 nw::ifstream f2 = make_ifstream(filename); in test_ifstream() 76 nw::ifstream f; in test_ifstream() 78 nw::ifstream f2 = make_ifstream(filename); in test_ifstream() [all …]
|
D | test_fstream.cpp | 20 namespace nw = boost::nowide; 24 nw::ofstream f(filepath, std::ios_base::out | std::ios::trunc); in make_empty_file() 30 FILE* f = nw::fopen(filepath, "r"); in file_exists() 41 FILE* f = nw::fopen(filepath, binary_mode ? "rb" : "r"); in read_file() 63 nw::fstream f; in test_with_different_buffer_sizes() 144 TEST(nw::remove(filepath) == 0); in test_with_different_buffer_sizes() 152 TEST(!file_exists(filepath2.c_str()) || nw::remove(filepath2.c_str()) == 0); in test_close() 154 nw::filebuf buf; in test_close() 168 TEST(nw::remove(filepath) == 0); in test_close() 169 TEST(nw::remove(filepath2.c_str()) == 0); in test_close() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | nalutils.c | 310 nal_writer_init (NalWriter * nw, guint nal_prefix_size, gboolean packetized) in nal_writer_init() argument 312 g_return_if_fail (nw != NULL); in nal_writer_init() 316 gst_bit_writer_init (&nw->bw); in nal_writer_init() 317 nw->nal_prefix_size = nal_prefix_size; in nal_writer_init() 318 nw->packetized = packetized; in nal_writer_init() 322 nal_writer_reset (NalWriter * nw) in nal_writer_reset() argument 324 g_return_if_fail (nw != NULL); in nal_writer_reset() 326 gst_bit_writer_reset (&nw->bw); in nal_writer_reset() 327 memset (nw, 0, sizeof (NalWriter)); in nal_writer_reset() 331 nal_writer_do_rbsp_trailing_bits (NalWriter * nw) in nal_writer_do_rbsp_trailing_bits() argument [all …]
|
D | nalutils.h | 200 void nal_writer_init (NalWriter * nw, guint nal_prefix_size, gboolean packetized); 203 void nal_writer_reset (NalWriter * nw); 206 gboolean nal_writer_do_rbsp_trailing_bits (NalWriter * nw); 209 GstMemory * nal_writer_reset_and_get_memory (NalWriter * nw); 212 gboolean nal_writer_put_bits_uint8 (NalWriter * nw, guint8 value, guint nbits); 215 gboolean nal_writer_put_bits_uint16 (NalWriter * nw, guint16 value, guint nbits); 218 gboolean nal_writer_put_bits_uint32 (NalWriter * nw, guint32 value, guint nbits); 221 gboolean nal_writer_put_bytes (NalWriter * nw, const guint8 * data, guint nbytes); 224 gboolean nal_writer_put_ue (NalWriter * nw, guint32 value); 229 #define WRITE_UINT8(nw, val, nbits) { \ argument [all …]
|
D | gsth264parser.c | 2780 gst_h264_write_sei_registered_user_data (NalWriter * nw, in gst_h264_write_sei_registered_user_data() argument 2783 WRITE_UINT8 (nw, rud->country_code, 8); in gst_h264_write_sei_registered_user_data() 2785 WRITE_UINT8 (nw, rud->country_code_extension, 8); in gst_h264_write_sei_registered_user_data() 2787 WRITE_BYTES (nw, rud->data, rud->size); in gst_h264_write_sei_registered_user_data() 2796 gst_h264_write_sei_frame_packing (NalWriter * nw, in gst_h264_write_sei_frame_packing() argument 2799 WRITE_UE (nw, frame_packing->frame_packing_id); in gst_h264_write_sei_frame_packing() 2800 WRITE_UINT8 (nw, frame_packing->frame_packing_cancel_flag, 1); in gst_h264_write_sei_frame_packing() 2803 WRITE_UINT8 (nw, frame_packing->frame_packing_type, 7); in gst_h264_write_sei_frame_packing() 2804 WRITE_UINT8 (nw, frame_packing->quincunx_sampling_flag, 1); in gst_h264_write_sei_frame_packing() 2805 WRITE_UINT8 (nw, frame_packing->content_interpretation_type, 6); in gst_h264_write_sei_frame_packing() [all …]
|
/third_party/gstreamer/gstplugins_bad/tests/check/libs/ |
D | nalutils.c | 27 NalWriter nw; in GST_START_TEST() local 30 ASSERT_CRITICAL (nal_writer_init (&nw, 0, TRUE)); in GST_START_TEST() 31 ASSERT_CRITICAL (nal_writer_init (&nw, 0, FALSE)); in GST_START_TEST() 32 ASSERT_CRITICAL (nal_writer_init (&nw, 5, TRUE)); in GST_START_TEST() 33 ASSERT_CRITICAL (nal_writer_init (&nw, 5, FALSE)); in GST_START_TEST() 35 nal_writer_init (&nw, 4, FALSE); in GST_START_TEST() 36 nal_writer_reset (&nw); in GST_START_TEST() 43 NalWriter nw; in GST_START_TEST() local 76 nal_writer_init (&nw, 4, FALSE); in GST_START_TEST() 79 fail_unless (nal_writer_put_bits_uint8 (&nw, 0, 1)); in GST_START_TEST() [all …]
|
/third_party/openssl/crypto/bn/ |
D | bn_shift.c | 106 int i, nw; in bn_lshift_fixed_top() local 116 nw = n / BN_BITS2; in bn_lshift_fixed_top() 117 if (bn_wexpand(r, a->top + nw + 1) == NULL) in bn_lshift_fixed_top() 127 t = &(r->d[nw]); in bn_lshift_fixed_top() 138 r->d[nw] = 0; in bn_lshift_fixed_top() 140 if (nw != 0) in bn_lshift_fixed_top() 141 memset(r->d, 0, sizeof(*t) * nw); in bn_lshift_fixed_top() 144 r->top = a->top + nw + 1; in bn_lshift_fixed_top() 175 int i, top, nw; in bn_rshift_fixed_top() local 185 nw = n / BN_BITS2; in bn_rshift_fixed_top() [all …]
|
/third_party/musl/src/string/ |
D | memmem.c | 7 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_memmem() local 9 if (hw == nw) return (char *)h-2; in twobyte_memmem() 10 return hw == nw ? (char *)h-2 : 0; in twobyte_memmem() 15 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_memmem() local 18 if (hw == nw) return (char *)h-3; in threebyte_memmem() 19 return hw == nw ? (char *)h-3 : 0; in threebyte_memmem() 24 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_memmem() local 27 if (hw == nw) return (char *)h-4; in fourbyte_memmem() 28 return hw == nw ? (char *)h-4 : 0; in fourbyte_memmem()
|
D | strstr.c | 6 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr() local 7 for (h++; *h && hw != nw; hw = hw<<8 | *++h); in twobyte_strstr() 13 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_strstr() local 15 for (h+=2; *h && hw != nw; hw = (hw|*++h)<<8); in threebyte_strstr() 21 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_strstr() local 23 for (h+=3; *h && hw != nw; hw = hw<<8 | *++h); in fourbyte_strstr()
|
/third_party/boost/boost/random/ |
D | piecewise_constant_distribution.hpp | 149 param_type(std::size_t nw, RealType xmin, RealType xmax, F f) in param_type() argument 151 std::size_t n = (nw == 0) ? 1 : nw; in param_type() 337 piecewise_constant_distribution(std::size_t nw, in piecewise_constant_distribution() argument 341 : _bins(nw, xmin, xmax, f) in piecewise_constant_distribution() 343 if(nw == 0) { nw = 1; } in piecewise_constant_distribution() 344 RealType delta = (xmax - xmin) / nw; in piecewise_constant_distribution() 345 _intervals.reserve(nw + 1); in piecewise_constant_distribution() 346 for(std::size_t i = 0; i < nw; ++i) { in piecewise_constant_distribution()
|
/third_party/musl/porting/liteos_a/kernel/src/string/ |
D | strstr.c | 6 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr() local 7 for (h++; *h && hw != nw; hw = hw<<8 | *++h); in twobyte_strstr() 13 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_strstr() local 15 for (h+=2; *h && hw != nw; hw = (hw|*++h)<<8); in threebyte_strstr() 21 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_strstr() local 23 for (h+=3; *h && hw != nw; hw = hw<<8 | *++h); in fourbyte_strstr()
|
/third_party/musl/porting/uniproton/kernel/src/string/ |
D | strstr.c | 6 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr() local 7 for (h++; *h && hw != nw; hw = hw<<8 | *++h); in twobyte_strstr() 13 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_strstr() local 15 for (h+=2; *h && hw != nw; hw = (hw|*++h)<<8); in threebyte_strstr() 21 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_strstr() local 23 for (h+=3; *h && hw != nw; hw = hw<<8 | *++h); in fourbyte_strstr()
|
/third_party/musl/porting/liteos_m/kernel/src/string/ |
D | strstr.c | 6 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr() local 7 for (h++; *h && hw != nw; hw = hw<<8 | *++h); in twobyte_strstr() 13 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_strstr() local 15 for (h+=2; *h && hw != nw; hw = (hw|*++h)<<8); in threebyte_strstr() 21 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_strstr() local 23 for (h+=3; *h && hw != nw; hw = hw<<8 | *++h); in fourbyte_strstr()
|
/third_party/abseil-cpp/absl/random/ |
D | discrete_distribution.h | 73 explicit param_type(size_t nw, double xmin, double xmax, in param_type() argument 75 if (nw > 0) { in param_type() 76 p_.reserve(nw); in param_type() 77 double delta = (xmax - xmin) / static_cast<double>(nw); in param_type() 80 for (size_t i = 0; i < nw; ++i) { in param_type() 123 explicit discrete_distribution(size_t nw, double xmin, double xmax, in discrete_distribution() argument 125 : param_(nw, xmin, xmax, std::move(fw)) {} in discrete_distribution()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | discrete_distribution.h | 73 explicit param_type(size_t nw, double xmin, double xmax, in param_type() argument 75 if (nw > 0) { in param_type() 76 p_.reserve(nw); in param_type() 77 double delta = (xmax - xmin) / static_cast<double>(nw); in param_type() 80 for (size_t i = 0; i < nw; ++i) { in param_type() 123 explicit discrete_distribution(size_t nw, double xmin, double xmax, in discrete_distribution() argument 125 : param_(nw, xmin, xmax, std::move(fw)) {} in discrete_distribution()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/fork/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_once/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/sem_getvalue/ |
D | testfrmw.c | 51 time_t nw; in output() local 54 nw = time(NULL); in output() 55 now = localtime(&nw); in output()
|