mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Move static methods to the anonymous namespace.
llvm-svn: 136221
This commit is contained in:
parent
d5378ec61f
commit
29ef880b52
@ -24,9 +24,6 @@ class BlockFrequency {
|
||||
|
||||
uint64_t Frequency;
|
||||
|
||||
static void mult96bit(uint64_t freq, uint32_t N, uint64_t W[2]);
|
||||
static uint64_t div96bit(uint64_t W[2], uint32_t D);
|
||||
|
||||
public:
|
||||
BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { }
|
||||
|
||||
|
@ -18,8 +18,10 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
||||
/// mult96bit - Multiply FREQ by N and store result in W array.
|
||||
void BlockFrequency::mult96bit(uint64_t freq, uint32_t N, uint64_t W[2]) {
|
||||
void mult96bit(uint64_t freq, uint32_t N, uint64_t W[2]) {
|
||||
uint64_t u0 = freq & UINT32_MAX;
|
||||
uint64_t u1 = freq >> 32;
|
||||
|
||||
@ -41,7 +43,7 @@ void BlockFrequency::mult96bit(uint64_t freq, uint32_t N, uint64_t W[2]) {
|
||||
|
||||
|
||||
/// div96bit - Divide 96-bit value stored in W array by D. Return 64-bit frequency.
|
||||
uint64_t BlockFrequency::div96bit(uint64_t W[2], uint32_t D) {
|
||||
uint64_t div96bit(uint64_t W[2], uint32_t D) {
|
||||
uint64_t y = W[0];
|
||||
uint64_t x = W[1];
|
||||
|
||||
@ -58,6 +60,9 @@ uint64_t BlockFrequency::div96bit(uint64_t W[2], uint32_t D) {
|
||||
return y;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
BlockFrequency &BlockFrequency::operator*=(const BranchProbability &Prob) {
|
||||
uint32_t n = Prob.getNumerator();
|
||||
uint32_t d = Prob.getDenominator();
|
||||
|
Loading…
Reference in New Issue
Block a user