| 27 | } // namespace |
| 28 | |
| 29 | void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range & )> f ) |
| 30 | { |
| 31 | const auto blockRange = toBlockRange( bitRange ); |
| 32 | tbb::parallel_for( blockRange, [&] ( const Range & subRange ) |
| 33 | { |
| 34 | const auto bitSubRange = toBitSubRange( bitRange, blockRange, subRange ); |
| 35 | for ( auto i = bitSubRange.begin(); i < bitSubRange.end(); ++i ) |
| 36 | f( i, bitSubRange ); |
| 37 | } ); |
| 38 | } |
| 39 | |
| 40 | void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range &, void* )> f, |
| 41 | FunctionRef<void* ()> ctx ) |
no test coverage detected