This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 761 tests from 160 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from APICSolver2 | |
[ RUN ] APICSolver2.UpdateEmpty | |
[ OK ] APICSolver2.UpdateEmpty (5 ms) | |
[----------] 1 test from APICSolver2 (5 ms total) | |
[----------] 1 test from APICSolver3 | |
[ RUN ] APICSolver3.UpdateEmpty | |
[ OK ] APICSolver3.UpdateEmpty (11 ms) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 761 tests from 160 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from APICSolver2 | |
[ RUN ] APICSolver2.UpdateEmpty | |
[ OK ] APICSolver2.UpdateEmpty (19 ms) | |
[----------] 1 test from APICSolver2 (21 ms total) | |
[----------] 1 test from APICSolver3 | |
[ RUN ] APICSolver3.UpdateEmpty | |
[ OK ] APICSolver3.UpdateEmpty (24 ms) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run on (12 X 3298 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x6) | |
L1 Instruction 32K (x6) | |
L2 Unified 262K (x6) | |
L3 Unified 15728K (x1) | |
-------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
-------------------------------------------------------------------------------------------------- | |
BVH3/Nearest 130629 ns 129395 ns 6400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 7 tests from 4 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from FDMICCGSolver3 | |
[ RUN ] FDMICCGSolver3.Memory | |
[ STAT ] Mem usage: 2.414410 GB. | |
[ OK ] FDMICCGSolver3.Memory (7952 ms) | |
[----------] 1 test from FDMICCGSolver3 (7953 ms total) | |
[----------] 1 test from FLIPSolver3 | |
[ RUN ] FLIPSolver3.Memory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run on (12 X 3298 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x6) | |
L1 Instruction 32K (x6) | |
L2 Unified 262K (x6) | |
L3 Unified 15728K (x1) | |
-------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
-------------------------------------------------------------------------------------------------- | |
BVH3/Nearest 138131 ns 138108 ns 7467 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
class A | |
{ | |
public: | |
// Simple constructor that initializes the resource. | |
explicit A(size_t length) | |
: mLength(length), mData(new int[length]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <tuple> | |
int main() | |
{ | |
auto tuple = std::make_tuple(1, 'a', 2.3); | |
// unpack the tuple into individual variables declared at the call site | |
auto[i, c, d] = tuple; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <utility> | |
struct A | |
{ | |
std::string s; | |
A() : s("test") { } | |
A(const A& o) : s(o.s) { std::cout << "move failed!\n"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! | |
//! \brief Returns the absolute minimum value among the elements in std::array. | |
//! | |
//! \param[in] arr The array. | |
//! | |
//! \tparam T Value type. | |
//! | |
//! \return The absolute minimum. | |
//! | |
template <typename T, int N> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::wstring ReplaceWCSWithPattern(__in const std::wstring &message, __in const std::wstring &pattern, __in const std::wstring &replace) | |
{ | |
std::wstring result = message; | |
std::wstring::size_type pos = 0; | |
std::wstring::size_type offset = 0; | |
while ((pos = result.find(pattern, offset)) != std::wstring::npos) | |
{ | |
result.replace(result.begin() + pos, result.begin() + pos + pattern.size(), replace); | |
offset = pos + replace.size(); |