Merge pull request #10876 from shuffle2/cpudetect
CPUDetect: improve win/arm64 support
This commit is contained in:
9 files changed
+422
-229
No files matched your search
@@ -259,6 +259,13 @@ void ReplaceBreaksWithSpaces(std::string& str)
|
||||
std::replace(str.begin(), str.end(), '\n', ' ');
|
||||
}
|
||||
|
||||
void TruncateToCString(std::string* s)
|
||||
{
|
||||
const size_t terminator = s->find_first_of('\0');
|
||||
if (terminator != s->npos)
|
||||
s->resize(terminator);
|
||||
}
|
||||
|
||||
bool TryParse(const std::string& str, bool* const output)
|
||||
{
|
||||
float value;
|
||||
|
||||
Reference in new issue
Block a user