Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/boost/libs/math/tools/
Dlambert_w_lookup_table_generator.cpp123 std::ofstream fout(filename, std::ios::out); // File output stream.
137 if (!fout.is_open()) in main()
147 fout.precision(output_precision); in main()
148 fout << in main()
169 fout << "// Sizes of arrays of z values for Lambert W[0], W[1] ... W[64]" in main()
172fout << "\nnamespace boost {\nnamespace math {\nnamespace lambert_w_detail {\nnamespace lambert_w_… in main()
176 fout << "BOOST_STATIC_CONSTEXPR std::size_t noof_sqrts = " << noof_sqrts << ";" << std::endl; in main()
177fout << "BOOST_STATIC_CONSTEXPR std::size_t noof_halves = " << noof_halves << ";" << std::endl; /… in main()
184 fout << "BOOST_STATIC_CONSTEXPR std::size_t noof_w0es = " << noof_w0zs << ";" << std::endl; in main()
185 fout << "BOOST_STATIC_CONSTEXPR std::size_t noof_w0zs = " << noof_w0zs << ";" << std::endl; in main()
[all …]
Dlambert_w_low_reference_values.cpp92 std::ofstream fout(filename, std::ios::out); ; //
99 fout in output_value()
109 fout in output_lambert_w0()
128 if (!fout.is_open()) in main()
138 fout.precision(output_precision); in main()
144 fout << in main()
159 fout << "// Size of arrays of arguments z and Lambert W" << std::endl; in main()
160 fout << "static const unsigned int noof_tests = " << no_of_tests << ";" << std::endl; in main()
164 fout << "// Declare arrays of arguments z and Lambert W(z)" << std::endl; in main()
165 fout << "// The values are defined using the macro BOOST_MATH_TEST_VALUE to ensure\n" in main()
[all …]
Dlambert_w_high_reference_values.cpp42 std::ofstream fout(filename, std::ios::out);
57 if (!fout.is_open()) in main()
68 fout.precision(output_precision); in main()
69 fout << std::showpoint << std::endl; // Do show trailing zeros. in main()
73 fout << in main()
88 fout << "// Size of arrays of arguments z and Lambert W" << std::endl; in main()
89 fout << "static const unsigned int noof_tests = " << no_of_tests << ";" << std::endl; in main()
92 fout << "\n// Declare arrays of arguments z and Lambert W(z)" << std::endl; in main()
93 fout << in main()
99 fout << in main()
[all …]
/third_party/python/Lib/test/
Dtest_aifc.py166 self.fout = aifc.open(TESTFN, 'wb')
186 fout = aifc.open(io.BytesIO(), 'wb')
187 fout.setnchannels(1)
188 fout.setframerate(1)
189 fout.setcomptype(comptype, b'')
190 fout.close()
191 self.assertEqual(fout.getsampwidth(), 2)
192 fout.initfp(None)
195 fout = aifc.open(io.BytesIO(), 'wb')
196 self.assertEqual(fout.getmarkers(), None)
[all …]
/third_party/boost/libs/multiprecision/doc/
Dnumeric_limits_qbk.cpp416 std::ofstream fout(filename, std::ios_base::out); in main() local
417 if (!fout.is_open()) in main()
422 fout << in main()
432fout << "[section:limits"<< bits32_64 << " Numeric limits for " << bits32_64 << "-bit platform]" <… in main()
435 fout << "These tables were generated using the following program and options:\n\n" in main()
441fout << "[table:integral_constants Integer types constants (`std::numeric_limits<T>::is_integer ==… in main()
446 fout << "[" << integer_constant_heads[i] << "]" ; in main()
448 fout << "]"; in main()
450 integer_constants<bool>("bool", fout); in main()
451 integer_constants<char>("char", fout); in main()
[all …]
/third_party/boost/tools/build/src/engine/
Dmkjambase.cpp37 FILE * fout; in main() local
47 if ( !( fout = fopen( argv[1], "w" ) ) ) in main()
64 fprintf( fout, "/* Generated by mkjambase from Jambase */\n" ); in main()
65 fprintf( fout, "const char *jambase[] = {\n" ); in main()
77 fprintf( fout, "/* %s */\n", *argv ); in main()
79 fprintf( fout, "### %s ###\n", *argv ); in main()
96 putc( '"', fout ); in main()
100 case '\\': putc( '\\', fout ); putc( '\\', fout ); break; in main()
101 case '"' : putc( '\\', fout ); putc( '"' , fout ); break; in main()
103 default: putc( *p, fout ); break; in main()
[all …]
/third_party/skia/third_party/externals/libwebp/imageio/
Dimage_enc.c207 int WebPWritePNG(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePNG() argument
208 if (fout == NULL || buffer == NULL) return 0; in WebPWritePNG()
220 static int WritePPMPAM(FILE* fout, const WebPDecBuffer* const buffer, in WritePPMPAM() argument
222 if (fout == NULL || buffer == NULL) { in WritePPMPAM()
235 fprintf(fout, "P7\nWIDTH %u\nHEIGHT %u\nDEPTH 4\nMAXVAL 255\n" in WritePPMPAM()
238 fprintf(fout, "P6\n%u %u\n255\n", width, height); in WritePPMPAM()
241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
250 int WebPWritePPM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePPM() argument
251 return WritePPMPAM(fout, buffer, 0); in WebPWritePPM()
254 int WebPWritePAM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePAM() argument
[all …]
Dimage_enc.h64 int WebPWritePPM(FILE* fout, const struct WebPDecBuffer* const buffer);
67 int WebPWritePAM(FILE* fout, const struct WebPDecBuffer* const buffer);
70 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
73 int WebPWriteBMP(FILE* fout, const struct WebPDecBuffer* const buffer);
76 int WebPWriteTIFF(FILE* fout, const struct WebPDecBuffer* const buffer);
79 int WebPWriteAlphaPlane(FILE* fout, const struct WebPDecBuffer* const buffer);
84 int WebPWritePGM(FILE* fout, const struct WebPDecBuffer* const buffer);
87 int WebPWriteYUV(FILE* fout, const struct WebPDecBuffer* const buffer);
90 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
/third_party/flutter/skia/third_party/externals/libwebp/imageio/
Dimage_enc.c207 int WebPWritePNG(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePNG() argument
208 if (fout == NULL || buffer == NULL) return 0; in WebPWritePNG()
220 static int WritePPMPAM(FILE* fout, const WebPDecBuffer* const buffer, in WritePPMPAM() argument
222 if (fout == NULL || buffer == NULL) { in WritePPMPAM()
235 fprintf(fout, "P7\nWIDTH %u\nHEIGHT %u\nDEPTH 4\nMAXVAL 255\n" in WritePPMPAM()
238 fprintf(fout, "P6\n%u %u\n255\n", width, height); in WritePPMPAM()
241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
250 int WebPWritePPM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePPM() argument
251 return WritePPMPAM(fout, buffer, 0); in WebPWritePPM()
254 int WebPWritePAM(FILE* fout, const WebPDecBuffer* const buffer) { in WebPWritePAM() argument
[all …]
Dimage_enc.h64 int WebPWritePPM(FILE* fout, const struct WebPDecBuffer* const buffer);
67 int WebPWritePAM(FILE* fout, const struct WebPDecBuffer* const buffer);
70 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
73 int WebPWriteBMP(FILE* fout, const struct WebPDecBuffer* const buffer);
76 int WebPWriteTIFF(FILE* fout, const struct WebPDecBuffer* const buffer);
79 int WebPWriteAlphaPlane(FILE* fout, const struct WebPDecBuffer* const buffer);
84 int WebPWritePGM(FILE* fout, const struct WebPDecBuffer* const buffer);
87 int WebPWriteYUV(FILE* fout, const struct WebPDecBuffer* const buffer);
90 int WebPWrite16bAsPGM(FILE* fout, const struct WebPDecBuffer* const buffer);
/third_party/jsoncpp/test/
Dpyjsontestrunner.py25 def valueTreeToString(fout, value, path = '.'): argument
28 fout.write('%s={}\n' % path)
33 valueTreeToString(fout, value[name], path + suffix + name)
35 fout.write('%s=[]\n' % path)
37 valueTreeToString(fout, childValue, path + '[%d]' % index)
39 fout.write('%s="%s"\n' % (path,value))
41 fout.write('%s=%d\n' % (path,value))
43 fout.write('%s=%.16g\n' % (path,value))
45 fout.write('%s=true\n' % path)
47 fout.write('%s=false\n' % path)
[all …]
/third_party/boost/libs/math/example/
Dfft_sines_table.cpp164 std::ofstream fout(sines_name, std::ios_base::out); // Creates if no file exists, in main() local
166 if (fout.is_open() == false) in main()
174 fout << prolog in main()
179 fout << "#include <array> // std::array" << std::endl; in main()
182 fout << "\nstatic const std::array<double, " << size << "> sines =\n" in main()
184 fout.precision(precision); in main()
188 fout << " " << sin_values[i]; in main()
191 fout << "\n}}; // array sines\n"; // 2nd } needed for some old GCC compiler versions. in main()
196 fout << ",\n"; in main()
201 fout.close(); in main()
Droot_n_finding_algorithms.cpp116 std::ofstream fout; variable
372 fout.open(qbk_name, std::ios_base::out); in table_type_info()
374 if (fout.is_open()) in table_type_info()
385 fout << in table_type_info()
397fout << "[h6 Fraction of maximum possible bits of accuracy required is " << digits_accuracy << ".]… in table_type_info()
408 fout << "[table:" << table_id << " Digits for float, double, long double and cpp_bin_float_50\n" in table_type_info()
413 fout << "[[" << "float" << "]" in table_type_info()
418 fout << "[[" << "float" << "]" in table_type_info()
423 fout << "[[" << "long double" << "]" in table_type_info()
428 fout << "[[" << "cpp_bin_float_50" << "]" in table_type_info()
[all …]
Droot_elliptic_finding.cpp115 std::ofstream fout; variable
384 fout.open(qbk_name, std::ios_base::out); in table_type_info()
386 if (fout.is_open()) in table_type_info()
397 fout << in table_type_info()
409fout << "[h6 Fraction of maximum possible bits of accuracy required is " << digits_accuracy << ".]… in table_type_info()
420 fout << "[table:" << table_id << " Digits for float, double, long double and cpp_bin_float_50\n" in table_type_info()
425 fout << "[[" << "float" << "]" in table_type_info()
430 fout << "[[" << "float" << "]" in table_type_info()
435 fout << "[[" << "long double" << "]" in table_type_info()
440 fout << "[[" << "cpp_bin_float_50" << "]" in table_type_info()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/clk/
Dics8n3qv01.c78 static int ics8n3qv01_calc_parameters(uint fout, uint *_mint, uint *_mfrac, in ics8n3qv01_calc_parameters() argument
84 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
85 if (fout < 417000000U) in ics8n3qv01_calc_parameters()
86 n = 2 * ((2215000000U / 2 + fout / 2) / fout); in ics8n3qv01_calc_parameters()
88 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
93 foutiic = fout - (fout / 10000); in ics8n3qv01_calc_parameters()
110 static ulong ics8n3qv01_set_rate(struct clk *clk, ulong fout) in ics8n3qv01_set_rate() argument
122 priv->rate = fout; in ics8n3qv01_set_rate()
135 fout_prog = (u64)fout * (u64)fout_calc in ics8n3qv01_set_rate()
/third_party/skia/third_party/externals/brotli/research/
Dbrotli_decoder.c17 FILE* fout; member
25 ctx->fout = 0; in init()
35 if (ctx->fout) fclose(ctx->fout); in cleanup()
56 ctx.fout = fdopen(STDOUT_FILENO, "wb"); in main()
57 if (!ctx.fout) fail(&ctx, "can't open output file"); in main()
74 fwrite(ctx.output_buffer, 1, BUFFER_SIZE, ctx.fout); in main()
75 if (ferror(ctx.fout)) break; in main()
85 fwrite(ctx.output_buffer, 1, next_out - ctx.output_buffer, ctx.fout); in main()
87 if ((result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) || ferror(ctx.fout)) { in main()
Dfind_opt_references.cc77 int right_lcp, FILE* fout) { in PrintReference() argument
86 fputc(1, fout); in PrintReference()
87 fwrite(&idx, sizeof(int), 1, fout); // Position in input. in PrintReference()
88 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. in PrintReference()
164 void ProcessEntries(entry_type* entries, size_t size, FILE* fout) { in ProcessEntries() argument
188 fputc(1, fout); in ProcessEntries()
189 fwrite(&idx, sizeof(int), 1, fout); // Position in input. in ProcessEntries()
190 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. in ProcessEntries()
205 FILE* fout = fopen(argv[2], "w"); in main() local
242 Fn print = std::bind(PrintReference, _1, _2, _3, _4, _5, _6, _7, _8, fout); in main()
[all …]
Ddraw_histogram.cc158 void DrawPixels(uint8_t** pixel, FILE* fout) { in DrawPixels() argument
162 fprintf(fout, "P5\n%d %d\n255\n", width, height); in DrawPixels()
164 fwrite(pixel[i], 1, width, fout); in DrawPixels()
179 FILE* fout = fopen(argv[2], "wb"); in main() local
181 if (fin != nullptr && fout != nullptr) { in main()
193 DrawPixels(pixel, fout); in main()
197 if (fout) fclose(fout); in main()
/third_party/boost/libs/lexical_cast/perf/
Dperformance_test.cpp23 std::fstream fout; variable
140 fout << "[ " in min_fancy_output()
144 if (v1) fout << v1; in min_fancy_output()
145 else fout << "<1"; in min_fancy_output()
147 fout << (res == 1 ? end_mark : no_mark) in min_fancy_output()
152 if (v2) fout << v2; in min_fancy_output()
153 else fout << "<1"; in min_fancy_output()
155 fout << (res == 2 ? end_mark : no_mark) in min_fancy_output()
160 if (v3) fout << v3; in min_fancy_output()
161 else fout << "<1"; in min_fancy_output()
[all …]
/third_party/jsoncpp/src/jsontestrunner/
Dmain.cpp75 static void printValueTree(FILE* fout, Json::Value& value, in printValueTree() argument
78 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); in printValueTree()
82 fprintf(fout, "%s=null\n", path.c_str()); in printValueTree()
85 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
89 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
93 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
97 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); in printValueTree()
100 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); in printValueTree()
103 fprintf(fout, "%s=[]\n", path.c_str()); in printValueTree()
108 printValueTree(fout, value[index], path + buffer); in printValueTree()
[all …]
/third_party/uboot/u-boot-2020.01/board/gdsys/common/
Dosd.c81 static void mpc92469ac_calc_parameters(unsigned int fout, in mpc92469ac_calc_parameters() argument
89 if (fout < 50169600) in mpc92469ac_calc_parameters()
91 else if (fout < 100339199) in mpc92469ac_calc_parameters()
93 else if (fout < 200678399) in mpc92469ac_calc_parameters()
98 a = fout * n + (b / 2); /* add b/2 for proper rounding */ in mpc92469ac_calc_parameters()
106 static void mpc92469ac_set(unsigned screen, unsigned int fout) in mpc92469ac_set() argument
111 mpc92469ac_calc_parameters(fout, &n, &m); in mpc92469ac_set()
168 static void ics8n3qv01_calc_parameters(unsigned int fout, in ics8n3qv01_calc_parameters() argument
178 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
182 foutiic = fout - (fout / 10000); in ics8n3qv01_calc_parameters()
[all …]
/third_party/minimp4/
Dminimp4_test.c75 int demux(uint8_t *input_buf, ssize_t input_size, FILE *fout, int ntrack) in demux() argument
94 fwrite(sync + USE_SHORT_SYNC, 1, 4 - USE_SHORT_SYNC, fout); in demux()
95 fwrite(spspps, 1, spspps_bytes, fout); in demux()
101 fwrite(sync + USE_SHORT_SYNC, 1, 4 - USE_SHORT_SYNC, fout); in demux()
102 fwrite(spspps, 1, spspps_bytes, fout); in demux()
116 fwrite(mem + USE_SHORT_SYNC, 1, size - USE_SHORT_SYNC, fout); in demux()
165 fwrite(pcm, sizeof(INT_PCM)*info->frameSize*info->numChannels, 1, fout); in demux()
222 FILE *fout = fopen(argv[i + 1], "wb"); in main() local
223 if (!fout) in main()
230 return demux(alloc_buf, h264_size, fout, track); in main()
[all …]
/third_party/boost/libs/graph/example/
Dkruskal-example.cpp54 std::ofstream fout("figs/kruskal-eg.dot"); in main() local
55 fout << "graph A {\n" in main()
64 fout << source(*eiter, g) << " -- " << target(*eiter, g); in main()
67 fout << "[color=\"black\", label=\"" << get(edge_weight, g, *eiter) in main()
70 fout << "[color=\"gray\", label=\"" << get(edge_weight, g, *eiter) in main()
73 fout << "}\n"; in main()
/third_party/ffmpeg/doc/examples/
Dvaapi_encode.c74 static int encode_write(AVCodecContext *avctx, AVFrame *frame, FILE *fout) in encode_write() argument
93 ret = fwrite(enc_pkt.data, enc_pkt.size, 1, fout); in encode_write()
105 FILE *fin = NULL, *fout = NULL; in main() local
124 if (!(fout = fopen(argv[4], "w+b"))) { in main()
200 if ((err = (encode_write(avctx, hw_frame, fout))) < 0) { in main()
209 err = encode_write(avctx, NULL, fout); in main()
216 if (fout) in main()
217 fclose(fout); in main()
/third_party/mbedtls/programs/pkey/
Ddh_genprime.c106 FILE *fout; in main() local
195 if( ( fout = fopen( "dh_prime.txt", "wb+" ) ) == NULL ) in main()
201 if( ( ret = mbedtls_mpi_write_file( "P = ", &P, 16, fout ) != 0 ) || in main()
202 ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) in main()
205 fclose( fout ); in main()
210 fclose( fout ); in main()

1234