diff options
author | Kostya Serebryany <kcc@google.com> | 2017-12-12 23:11:28 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-12-12 23:11:28 +0000 |
commit | e4c546028442192e48480ff2d3d9e29ecc62774d (patch) | |
tree | b1a48dfc35675aff67861a4d3c1bbb39d7505723 /lib/fuzzer/FuzzerUtil.h | |
parent | 8106beb37dc9b0d632c3596895bda21ef8108e7d (diff) |
[libFuzzer] change the strategy for -experimental_len_control to grow max_len slower
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerUtil.h')
-rw-r--r-- | lib/fuzzer/FuzzerUtil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerUtil.h b/lib/fuzzer/FuzzerUtil.h index 9a6227ea7..f2ed028ce 100644 --- a/lib/fuzzer/FuzzerUtil.h +++ b/lib/fuzzer/FuzzerUtil.h @@ -80,6 +80,8 @@ std::string SearchRegexCmd(const std::string &Regex); size_t SimpleFastHash(const uint8_t *Data, size_t Size); +inline uint32_t Log(uint32_t X) { return 32 - __builtin_clz(X) - 1; } + } // namespace fuzzer #endif // LLVM_FUZZER_UTIL_H |