Home | History | Annotate | Download | only in Support

Lines Matching full:frequency

1 //===-------- BlockFrequency.h - Block Frequency Wrapper --------*- C++ -*-===//
10 // This file implements Block Frequency class.
24 // This class represents Block Frequency as a 64-bit value.
26 uint64_t Frequency;
29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { }
31 /// \brief Returns the maximum possible frequency, the saturation value.
34 /// \brief Returns the frequency as a fixpoint number scaled by the entry
35 /// frequency.
36 uint64_t getFrequency() const { return Frequency; }
48 /// \brief Adds another block frequency using saturating arithmetic.
52 /// \brief Subtracts another block frequency using saturating arithmetic.
56 /// \brief Shift block frequency to the right by count digits saturating to 1.
60 return Frequency < RHS.Frequency;
64 return Frequency <= RHS.Frequency;
68 return Frequency > RHS.Frequency;
72 return Frequency >= RHS.Frequency;
76 return Frequency == RHS.Frequency;