reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/BranchProbability.h
   35   static const uint32_t D = 1u << 31;

References

include/llvm/Support/BranchProbability.h
   50   static BranchProbability getOne() { return BranchProbability(D); }
   66   static uint32_t getDenominator() { return D; }
   69   BranchProbability getCompl() const { return BranchProbability(D - N); }
   95     N = (uint64_t(N) + RHS.N > D) ? D : N + RHS.N;
   95     N = (uint64_t(N) + RHS.N > D) ? D : N + RHS.N;
  110     N = (static_cast<uint64_t>(N) * RHS.N + D / 2) / D;
  110     N = (static_cast<uint64_t>(N) * RHS.N + D / 2) / D;
  117     N = (uint64_t(N) * RHS > D) ? D : N * RHS;
  117     N = (uint64_t(N) * RHS > D) ? D : N * RHS;
  124     N = (static_cast<uint64_t>(N) * D + RHS.N / 2) / RHS.N;
  243     I->N = (I->N * uint64_t(D) + Sum / 2) / Sum;
lib/Support/BranchProbability.cpp
   30   double Percent = rint(((double)N / D) * 100.0 * 100.0) / 100.0;
   31   return OS << format("0x%08" PRIx32 " / 0x%08" PRIx32 " = %.2f%%", N, D,
   42   if (Denominator == D)
   46         (Numerator * static_cast<uint64_t>(D) + Denominator / 2) / Denominator;
  107   return ::scale<D>(Num, N, D);
  107   return ::scale<D>(Num, N, D);
  111   return ::scale<0>(Num, D, N);