]> Git Repo - VerusCoin.git/blame - src/snark/libsnark/common/utils.tcc
src/snark patches for windows build
[VerusCoin.git] / src / snark / libsnark / common / utils.tcc
CommitLineData
51e44864
JG
1/** @file
2 *****************************************************************************
3 Implementation of templatized utility functions
4 *****************************************************************************
5 * @author This file is part of libsnark, developed by SCIPR Lab
6 * and contributors (see AUTHORS).
7 * @copyright MIT license (see LICENSE file)
8 *****************************************************************************/
9
10#ifndef UTILS_TCC_
11#define UTILS_TCC_
12
13namespace libsnark {
14
5a83e4fc
D
15#ifdef __APPLE__
16template<typename T>
17unsigned long size_in_bits(const std::vector<T> &v)
18{
19 return v.size() * T::size_in_bits();
20}
21#else
51e44864
JG
22template<typename T>
23size_t size_in_bits(const std::vector<T> &v)
24{
25 return v.size() * T::size_in_bits();
26}
5a83e4fc 27#endif
51e44864
JG
28
29} // libsnark
30
31#endif // UTILS_TCC_
This page took 0.048706 seconds and 4 git commands to generate.