blob: 59905bf09899c9985c1ed47f4d08a5440f7b3ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// 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.
//
// Various helper routines for generating AMD64 assembly code.
//
// Precompiled Header
#include "common.h"
#include "stublink.h"
#include "cgensys.h"
#include "siginfo.hpp"
#include "excep.h"
#include "ecall.h"
#include "dllimport.h"
#include "dllimportcallback.h"
#include "dbginterface.h"
#include "fcall.h"
#include "array.h"
#include "virtualcallstub.h"
#ifndef DACCESS_COMPILE
// Note: This is only used on server GC on Windows.
DWORD GetLogicalCpuCount()
{
LIMITED_METHOD_CONTRACT;
// The contact with any callers of this function is that if we're unable to determine
// the processor count, or the number of processors is not distributed evenly, then
// we should return 1.
return 1;
}
#endif // DACCESS_COMPILE
|