Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 543) sorted by relevance

12345678910>>...22

/external/llvm/test/Transforms/InstCombine/
Dfwrite-1.ll1 ; Test that the fwrite library call simplifier works correctly.
12 declare i64 @fwrite(i8*, i64, i64, %FILE *)
14 ; Check fwrite(S, 1, 1, fp) -> fputc(S[0], fp).
19 call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
28 call i64 @fwrite(i8* %str, i64 1, i64 0, %FILE* %fp)
36 call i64 @fwrite(i8* %str, i64 0, i64 1, %FILE* %fp)
44 %ret = call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
45 ; CHECK-NEXT: call i64 @fwrite
53 call i64 @fwrite(i8* %str, i64 %size, i64 1, %FILE* %fp)
54 ; CHECK-NEXT: call i64 @fwrite
Derr-rep-cold.ll42 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, i64…
45 ; CHECK: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, …
52 declare i64 @fwrite(i8* nocapture, i64, i64, %struct._IO_FILE* nocapture) #1
62 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, i64…
65 ; CHECK-NOT: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64…
Dfputs-1.ll15 ; Check fputs(str, fp) --> fwrite(str, 1, strlen(s), fp).
25 ; NOTE: The fwrite simplifier simplifies this further to fputc.
40 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([7 x i8]* @hello, i32 0, i32 0), i32 6, …
/external/chromium_org/third_party/zlib/contrib/minizip/
Dmztools.c67 if (fwrite(header, 1, 30, fpOut) == 30) {
77 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
95 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
117 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
160 if (fwrite(header, 1, 46, fpOutCD) == 46) {
165 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
178 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
188 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
230 if (fwrite(header, 1, 22, fpOutCD) == 22) {
234 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/external/zlib/src/contrib/minizip/
Dmztools.c67 if (fwrite(header, 1, 30, fpOut) == 30) {
78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
101 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
170 if (fwrite(header, 1, 46, fpOutCD) == 46) {
175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
240 if (fwrite(header, 1, 22, fpOutCD) == 22) {
244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/test/
DRTPFile.cc146 if (fwrite(&dummy_variable, 4, 1, _rtpFile) != 1) { in WriteHeader()
149 if (fwrite(&dummy_variable, 4, 1, _rtpFile) != 1) { in WriteHeader()
152 if (fwrite(&dummy_variable, 4, 1, _rtpFile) != 1) { in WriteHeader()
155 if (fwrite(&dummy_variable, 2, 1, _rtpFile) != 1) { in WriteHeader()
158 if (fwrite(&dummy_variable, 2, 1, _rtpFile) != 1) { in WriteHeader()
193 if (fwrite(&lengthBytes, 2, 1, _rtpFile) != 1) { in Write()
196 if (fwrite(&plen, 2, 1, _rtpFile) != 1) { in Write()
199 if (fwrite(&offsetMs, 4, 1, _rtpFile) != 1) { in Write()
202 if (fwrite(rtpHeader, 12, 1, _rtpFile) != 1) { in Write()
205 if (fwrite(payloadData, 1, payloadSize, _rtpFile) != payloadSize) { in Write()
DPCMFile.cc146 if (fwrite(audio_frame.data_, sizeof(uint16_t), in Write10MsData()
158 if (fwrite(stereo_audio, sizeof(int16_t), in Write10MsData()
166 if (fwrite(audio_frame.data_, sizeof(int16_t), in Write10MsData()
177 if (fwrite(playout_buffer, sizeof(uint16_t), length_smpls, pcm_file_) != in Write10MsData()
/external/fio/
Dlog.c22 len = fwrite(buffer, len, 1, f_out); in log_valist()
32 len = fwrite(buf, len, 1, f_out); in log_local_buf()
54 return fwrite(buffer, len, 1, f_out); in log_info()
85 ret = fwrite(buffer, len, 1, stderr); in log_err()
88 return fwrite(buffer, len, 1, f_err); in log_err()
/external/libopus/src/
Drepacketizer_demo.c164 if(fwrite(int_field, 1, 4, fout)!=4){ in main()
169 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
173 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
189 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
197 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
201 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
/external/chromium_org/third_party/opus/src/src/
Drepacketizer_demo.c164 if(fwrite(int_field, 1, 4, fout)!=4){ in main()
169 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
173 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
189 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
197 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
201 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
/external/chromium_org/ui/base/resource/
Ddata_pack.cc242 if (fwrite(&kFileFormatVersion, sizeof(kFileFormatVersion), 1, file) != 1) { in WritePack()
251 if (fwrite(&entry_count, sizeof(entry_count), 1, file) != 1) { in WritePack()
266 if (fwrite(&write_buffer, sizeof(uint8), 1, file) != 1) { in WritePack()
280 if (fwrite(&resource_id, sizeof(resource_id), 1, file) != 1) { in WritePack()
286 if (fwrite(&data_offset, sizeof(data_offset), 1, file) != 1) { in WritePack()
298 if (fwrite(&resource_id, sizeof(resource_id), 1, file) != 1) { in WritePack()
304 if (fwrite(&data_offset, sizeof(data_offset), 1, file) != 1) { in WritePack()
313 if (fwrite(it->second.data(), it->second.length(), 1, file) != 1) { in WritePack()
/external/webrtc/src/modules/audio_processing/test/
Dunpack.cc137 if (fwrite(msg.data().data(), msg.data().size(), 1, reverse_file) != in main()
152 if (fwrite(msg.input_data().data(), msg.input_data().size(), 1, in main()
160 if (fwrite(msg.output_data().data(), msg.output_data().size(), 1, in main()
170 if (fwrite(&delay, sizeof(int32_t), 1, delay_file) != 1) { in main()
178 if (fwrite(&drift, sizeof(int32_t), 1, drift_file) != 1) { in main()
186 if (fwrite(&level, sizeof(int32_t), 1, level_file) != 1) { in main()
/external/chromium_org/third_party/webrtc/modules/video_processing/main/test/unit_test/
DwriteYUV420file.m13 fwrite(fid,uint8(Y(:,:,k).'), 'uchar');
16 fwrite(fid,uint8(U(:,:,k).'), 'uchar');
19 fwrite(fid,uint8(V(:,:,k).'), 'uchar');
/external/chromium_org/third_party/libvpx/source/libvpx/
Divfenc.c36 fwrite(header, 1, 32, outfile); in ivf_write_file_header()
45 fwrite(header, 1, 12, outfile); in ivf_write_frame_header()
52 fwrite(header, 1, 4, outfile); in ivf_write_frame_size()
/external/libvpx/libvpx/
Divfenc.c36 fwrite(header, 1, 32, outfile); in ivf_write_file_header()
45 fwrite(header, 1, 12, outfile); in ivf_write_frame_header()
52 fwrite(header, 1, 4, outfile); in ivf_write_frame_size()
/external/chromium_org/chrome/browser/safe_browsing/
Dprefix_set_unittest.cc129 ASSERT_EQ(1U, fwrite(&value, sizeof(value), 1, fp)); in IncrementIntAt()
158 ASSERT_EQ(1U, fwrite(&new_digest, sizeof(new_digest), 1, fp)); in CleanChecksum()
550 ASSERT_EQ(strlen(buf), fwrite(buf, 1, strlen(buf), file.get())); in TEST_F()
569 ASSERT_EQ(sizeof(val), fwrite(&val, 1, sizeof(val), file.get())); in TEST_F()
570 ASSERT_EQ(sizeof(val), fwrite(&val, 1, sizeof(val), file.get())); in TEST_F()
577 ASSERT_EQ(sizeof(item), fwrite(&item, 1, sizeof(item), file.get())); in TEST_F()
580 ASSERT_EQ(sizeof(item), fwrite(&item, 1, sizeof(item), file.get())); in TEST_F()
584 ASSERT_EQ(sizeof(delta), fwrite(&delta, 1, sizeof(delta), file.get())); in TEST_F()
585 ASSERT_EQ(sizeof(delta), fwrite(&delta, 1, sizeof(delta), file.get())); in TEST_F()
589 ASSERT_EQ(sizeof(dummy), fwrite(&dummy, 1, sizeof(dummy), file.get())); in TEST_F()
[all …]
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/
DNETEQTEST_DummyRTPpacket.cc155 if (fwrite(&length, 2, 1, fp) != 1) in writeToFile()
162 if (fwrite(&plen, 2, 1, fp) != 1) in writeToFile()
169 if (fwrite(&offset, 4, 1, fp) != 1) in writeToFile()
189 if (fwrite((unsigned short *) _datagram, 1, headerLen, fp) != in writeToFile()
/external/chromium_org/third_party/webrtc/tools/frame_editing/
Dframe_editing_lib.cc60 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
69 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
74 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
/external/libvorbis/examples/
Dencoder_example.c174 fwrite(og.header,1,og.header_len,stdout); in main()
175 fwrite(og.body,1,og.body_len,stdout); in main()
227 fwrite(og.header,1,og.header_len,stdout); in main()
228 fwrite(og.body,1,og.body_len,stdout); in main()
/external/clang/test/CodeGen/
D2006-09-18-fwrite-cast-crash.c5 unsigned fwrite(signed char *, unsigned , unsigned , signed char *);
11 struct l_struct_2E_FILE *))(void*)fwrite)((&(str301[0u])), 38u, 1u, ltmp_6202_16); in Usage()
/external/oprofile/libopagent/
Dopagent.c177 if (!fwrite(&header, sizeof(header), 1, dumpfile)) { in op_open_agent()
181 if (!fwrite(_bfd_target_name, strlen(_bfd_target_name) + 1, 1, in op_open_agent()
187 if (pad_cnt && !fwrite(pad_bytes, pad_cnt, 1, dumpfile)) { in op_open_agent()
213 if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) in op_close_agent()
337 if (padding_count && !fwrite(padd_bytes, padding_count, 1, dumpfile)) in op_write_debug_line_info()
375 if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) in op_unload_native_code()
/external/qemu/android/
Dqemu-tcpdump.c66 if (fwrite(&h, sizeof(h), 1, out) != 1) { in pcap_write_header()
134 fwrite( &h, sizeof(h), 1, capture_file ); in qemu_tcpdump_packet()
135 fwrite( base, 1, len2, capture_file ); in qemu_tcpdump_packet()
/external/qemu/audio/
Dwavcapture.c44 fwrite(rlen, 4, 1, wav->f); in wav_destroy()
47 fwrite(dlen, 4, 1, wav->f); in wav_destroy()
58 fwrite(buf, size, 1, wav->f); in wav_capture()
146 fwrite(hdr, sizeof(hdr), 1, wav->f); in wav_start_capture()
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/bin/
Dbin-objfmt.c1003 fwrite(info->buf, REGULAR_OUTBUF_SIZE, 1, info->f); in bin_objfmt_output_bytecode()
1006 fwrite(info->buf, left, 1, info->f); in bin_objfmt_output_bytecode()
1009 fwrite(bigbuf ? bigbuf : info->buf, (size_t)size, 1, info->f); in bin_objfmt_output_bytecode()
1874 fwrite("MZ", 1, 2, f); in dosexe_objfmt_output()
1878 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
1880 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
1882 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
1884 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
1888 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
1889 fwrite(&c, 1, 1, f); in dosexe_objfmt_output()
[all …]
/external/libpng/contrib/libtests/
Dfakepng.c21 fwrite(chunk, length, 1, stdout); in put_chunk()
52 fwrite(signature, sizeof signature, 1, stdout); in main()

12345678910>>...22