1 // Copyright 2010 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.
16 var Fintto64 = fintto64
17 var F64toint = f64toint
21 func golockedOSThread() bool
23 var Entersyscall = entersyscall
24 var Exitsyscall = exitsyscall
25 var LockedOSThread = golockedOSThread
32 func lfstackpush(head *uint64, node *LFNode)
33 func lfstackpop2(head *uint64) *LFNode
35 var LFStackPush = lfstackpush
36 var LFStackPop = lfstackpop2
49 func parforalloc2(nthrmax uint32) *ParFor
50 func parforsetup2(desc *ParFor, nthr, n uint32, ctx *byte, wait bool, body func(*ParFor, uint32))
51 func parfordo(desc *ParFor)
52 func parforiters(desc *ParFor, tid uintptr) (uintptr, uintptr)
54 var NewParFor = parforalloc2
55 var ParForSetup = parforsetup2
56 var ParForDo = parfordo
58 func ParForIters(desc *ParFor, tid uint32) (uint32, uint32) {
59 begin, end := parforiters(desc, uintptr(tid))
60 return uint32(begin), uint32(end)