[PATCH] D65905: [compiler-rt] Add ConsumeProbability and ConsumeFloatingPoint methods to FDP.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 12:45:51 PDT 2019


morehouse accepted this revision.
morehouse added inline comments.


================
Comment at: include/fuzzer/FuzzedDataProvider.h:229
+      // the half of the diff as the range and consume a bool to decide whether
+      // the result is in the first of the second part of the diff.
+      range = (max / 2.0) - (min / 2.0);
----------------
Nice!


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65905/new/

https://reviews.llvm.org/D65905





More information about the llvm-commits mailing list