summaryrefslogtreecommitdiff
path: root/src/utilcode/yieldprocessornormalized.cpp
blob: 79d91f8c481cca64688fdbebd73e3bf5e288f508 (plain)
1
2
3
4
5
6
7
8
9
10
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#include "stdafx.h"

// Defaults are for when InitializeYieldProcessorNormalized has not yet been called or when no measurement is done, and are
// tuned for Skylake processors
unsigned int g_yieldsPerNormalizedYield = 1; // current value is for Skylake processors, this is expected to be ~8 for pre-Skylake
unsigned int g_optimalMaxNormalizedYieldsPerSpinIteration = 7;