Skip to content

Commit

Permalink
Default get_cpu and get_xcr on unsupported platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Apr 10, 2024
1 parent a3f2261 commit 47cf0ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/bitcoin/system/intrinsics/xcpu/cpuid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ inline bool get_cpu(uint32_t& a, uint32_t& b, uint32_t& c, uint32_t& d,
#endif
}

#else // HAVE_XCPU

inline bool get_xcr(uint64_t&, uint32_t) noexcept
{
return false;
}
inline bool get_cpu(uint32_t&, uint32_t&, uint32_t&, uint32_t&, uint32_t,
uint32_t) noexcept
{
return false;
}

#endif // HAVE_XCPU

} // namespace system
Expand Down

0 comments on commit 47cf0ff

Please sign in to comment.