Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Zhang committed Sep 20, 2024
1 parent 5a30328 commit c06fc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/c++/str/include/str/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ inline auto Format(const char* format, size_t ul1, size_t ul2)
{
return details::Format(format, ul1, ul2);
}
inline auto Format(const char* format, size_t ul1, size_t ul2, size_t ul3)
{
return details::Format(format, ul1, ul2, ul3);
}
inline auto Format(const char* format, size_t ul1, int i2)
{
return details::Format(format, ul1, i2);
Expand Down
2 changes: 2 additions & 0 deletions modules/c++/sys/source/OSWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ void sys::OSWin32::getAvailableCPUs(std::vector<int>& /*physicalCPUs*/,
sys::SIMDInstructionSet sys::OSWin32::getSIMDInstructionSet() const
{
// https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-isprocessorfeaturepresent
#if 0
if (IsProcessorFeaturePresent(PF_AVX512F_INSTRUCTIONS_AVAILABLE))
{
return SIMDInstructionSet::AVX512F;
Expand All @@ -365,6 +366,7 @@ sys::SIMDInstructionSet sys::OSWin32::getSIMDInstructionSet() const
{
return SIMDInstructionSet::AVX2;
}
#endif
if (IsProcessorFeaturePresent(PF_XMMI64_INSTRUCTIONS_AVAILABLE))
{
return SIMDInstructionSet::SSE2;
Expand Down

0 comments on commit c06fc17

Please sign in to comment.