Various formatting and consistency fixes

This commit is contained in:
Stevoisiak
2014-11-13 21:28:27 -05:00
parent 5fb94230cd
commit b25e1a2eb4
61 changed files with 143 additions and 178 deletions

View File

@ -3,7 +3,7 @@
// Refer to the license.txt file included.
// Detect the cpu, so we'll know which optimizations to use
// Detect the CPU, so we'll know which optimizations to use
#pragma once
#include <string>
@ -78,11 +78,11 @@ struct CPUInfo
// Call Detect()
explicit CPUInfo();
// Turn the cpu info into a string we can show
// Turn the CPU info into a string we can show
std::string Summarize();
private:
// Detects the various cpu features
// Detects the various CPU features
void Detect();
};

View File

@ -2,7 +2,6 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
// see IniFile.h
#include <algorithm>
@ -292,7 +291,6 @@ bool IniFile::GetLines(const std::string& sectionName, std::vector<std::string>*
return true;
}
void IniFile::SortSections()
{
sections.sort();

View File

@ -81,7 +81,7 @@ CPUInfo::CPUInfo()
Detect();
}
// Detects the various cpu features
// Detects the various CPU features
void CPUInfo::Detect()
{
memset(this, 0, sizeof(*this));
@ -104,7 +104,7 @@ void CPUInfo::Detect()
int cpu_id[4];
memset(brand_string, 0, sizeof(brand_string));
// Detect CPU's CPUID capabilities, and grab cpu string
// Detect CPU's CPUID capabilities, and grab CPU string
__cpuid(cpu_id, 0x00000000);
u32 max_std_fn = cpu_id[0]; // EAX
*((int *)brand_string) = cpu_id[1];
@ -225,7 +225,7 @@ void CPUInfo::Detect()
}
}
// Turn the cpu info into a string we can show
// Turn the CPU info into a string we can show
std::string CPUInfo::Summarize()
{
std::string sum(cpu_string);

View File

@ -568,7 +568,7 @@ void XEmitter::NOP(size_t size)
}
}
void XEmitter::PAUSE() {Write8(0xF3); NOP();} //use in tight spinloops for energy saving on some cpu
void XEmitter::PAUSE() {Write8(0xF3); NOP();} //use in tight spinloops for energy saving on some CPU
void XEmitter::CLC() {CheckFlags(); Write8(0xF8);} //clear carry
void XEmitter::CMC() {CheckFlags(); Write8(0xF5);} //flip carry
void XEmitter::STC() {CheckFlags(); Write8(0xF9);} //set carry

View File

@ -385,7 +385,7 @@ public:
void SetJumpTarget(const FixupBranch &branch);
void SETcc(CCFlags flag, OpArg dest);
// Note: CMOV brings small if any benefit on current cpus.
// Note: CMOV brings small if any benefit on current CPUs.
void CMOVcc(int bits, X64Reg dest, OpArg src, CCFlags flag);
// Fences