MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / main

Function main

fuzz/libFuzzer_dummy_main.cpp:60–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60int main(int argc, char** argv) {
61 if (1 == argc || (2 == argc && std::string("-help=1") == argv[1]))
62 return usage();
63
64#ifdef HAVE_OPENMP
65 const auto corpusCount = argc - 1;
66 auto chunkSize = (corpusCount / (10 * omp_get_num_threads()));
67 if (chunkSize <= 1)
68 chunkSize = 1;
69#pragma omp parallel for default(none) firstprivate(argc, argv, chunkSize) \
70 schedule(dynamic, chunkSize)
71#endif
72 for (int i = 1; i < argc; ++i)
73 process(argv[i]);
74
75 return EXIT_SUCCESS;
76}

Callers

nothing calls this directly

Calls 2

usageFunction · 0.70
processFunction · 0.70

Tested by

no test coverage detected