2018-23-01 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / go / runtime / export_windows_test.go
blob536b398fd7a077802aa5a65a328237c049171afa
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Export guts for testing.
7 package runtime
9 import "unsafe"
11 var (
12 TestingWER = &testingWER
13 OsYield = osyield
14 TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
17 func NumberOfProcessors() int32 {
18 var info systeminfo
19 stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
20 return int32(info.dwnumberofprocessors)
23 func LoadLibraryExStatus() (useEx, haveEx, haveFlags bool) {
24 return useLoadLibraryEx, _LoadLibraryExW != nil, _AddDllDirectory != nil