Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
hardware_concurrency.cpp
Go to the documentation of this file.
4#include <cstdlib>
5#include <iostream>
6#include <stdexcept>
7#include <string>
8
9#ifndef NO_MULTITHREADING
10#include <thread>
11#endif
12
13// WASM_EXPORT ensures this symbol stays visible when compiling with -fvisibility=hidden.
15{
16#ifdef NO_MULTITHREADING
17 return 1;
18#else
19 return std::thread::hardware_concurrency();
20#endif
21}
WASM_EXPORT uint32_t env_hardware_concurrency()
#define WASM_EXPORT