mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-12 08:47:41 +01:00
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
28 lines
677 B
Go
28 lines
677 B
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Export guts for testing.
|
|
|
|
package runtime
|
|
|
|
import "unsafe"
|
|
|
|
const MaxArgs = maxArgs
|
|
|
|
var (
|
|
TestingWER = &testingWER
|
|
OsYield = osyield
|
|
TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
|
|
)
|
|
|
|
func NumberOfProcessors() int32 {
|
|
var info systeminfo
|
|
stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
|
|
return int32(info.dwnumberofprocessors)
|
|
}
|
|
|
|
func LoadLibraryExStatus() (useEx, haveEx, haveFlags bool) {
|
|
return useLoadLibraryEx, _LoadLibraryExW != nil, _AddDllDirectory != nil
|
|
}
|