mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Fix utils::get_tsc_freq() (#7974)
Use magic static for once-initialization
This commit is contained in:
parent
4ff69dc0cd
commit
5834a466cd
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ static constexpr ullong round_tsc(ullong val)
|
||||||
|
|
||||||
ullong utils::get_tsc_freq()
|
ullong utils::get_tsc_freq()
|
||||||
{
|
{
|
||||||
const ullong cal_tsc = []() -> ullong
|
static const ullong cal_tsc = []() -> ullong
|
||||||
{
|
{
|
||||||
if (!has_invariant_tsc())
|
if (!has_invariant_tsc())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue