Preliminary to https://reviews.llvm.org/D81809
Diff Detail
- Repository
- rOLDT svn-test-suite
- Build Status
Buildable 62645 Build 76809: arc lint + arc unit
Event Timeline
MicroBenchmarks/Builtins/Int128/main.cpp | ||
---|---|---|
17 | Why is the default mt19937 not fine ? (please add a comment) | |
26 | Could we make H a provate typedef inside the class ? (It's not used outside, and I don;t see any specialization) | |
39 | H looks unused. | |
41 | Can you add some doc ? | |
62 | Use kSampleSize instead of values.size() for more accurate results (the DoNotOptimize call above will likely force the compiler to recompute the size at every iteration). Also it would be better to make kSampleSize a power of two and do: i = (i+1)%kSampleSize to avoid the branch altogether. | |
67 | why not __uint128_t ? |
Fix comments
MicroBenchmarks/Builtins/Int128/main.cpp | ||
---|---|---|
17 | You are right, does not matter |
MicroBenchmarks/Builtins/Int128/main.cpp | ||
---|---|---|
41 | What if a=b=1? max(a,b) < max(2,min(a,b)) |
MicroBenchmarks/Builtins/Int128/CMakeLists.txt | ||
---|---|---|
1 | You can set 14 because LLVM requires 14 now.. set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) |
MicroBenchmarks/Builtins/Int128/main.cpp | ||
---|---|---|
41 | The probability of that is 2^{-254} (a <= 1 and b <= 1) and it does not matter at that point, overall updated to match the comment |
You can set 14 because LLVM requires 14 now..
MSVC friendly alternative: