Rebase.
[official-gcc.git] / libgo / go / runtime / export_test.go
blob165bebf6316fe5d66845a0b726dbf68c6f54f166
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.
7 package runtime
9 var Fadd64 = fadd64
10 var Fsub64 = fsub64
11 var Fmul64 = fmul64
12 var Fdiv64 = fdiv64
13 var F64to32 = f64to32
14 var F32to64 = f32to64
15 var Fcmp64 = fcmp64
16 var Fintto64 = fintto64
17 var F64toint = f64toint
19 func entersyscall()
20 func exitsyscall()
21 func golockedOSThread() bool
23 var Entersyscall = entersyscall
24 var Exitsyscall = exitsyscall
25 var LockedOSThread = golockedOSThread
27 type LFNode struct {
28 Next *LFNode
29 Pushcnt uintptr
32 func lfstackpush_go(head *uint64, node *LFNode)
33 func lfstackpop_go(head *uint64) *LFNode
35 var LFStackPush = lfstackpush_go
36 var LFStackPop = lfstackpop_go
38 type ParFor struct {
39 body *byte
40 done uint32
41 Nthr uint32
42 nthrmax uint32
43 thrseq uint32
44 Cnt uint32
45 Ctx *byte
46 wait bool
49 func newParFor(nthrmax uint32) *ParFor
50 func parForSetup(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 = newParFor
55 var ParForSetup = parForSetup
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)
63 func testSchedLocalQueue()
64 func testSchedLocalQueueSteal()
66 var TestSchedLocalQueue1 = testSchedLocalQueue
67 var TestSchedLocalQueueSteal1 = testSchedLocalQueueSteal
69 // func haveGoodHash() bool
70 // func stringHash(s string, seed uintptr) uintptr
71 // func bytesHash(b []byte, seed uintptr) uintptr
72 // func int32Hash(i uint32, seed uintptr) uintptr
73 // func int64Hash(i uint64, seed uintptr) uintptr
75 // var HaveGoodHash = haveGoodHash
76 // var StringHash = stringHash
77 // var BytesHash = bytesHash
78 // var Int32Hash = int32Hash
79 // var Int64Hash = int64Hash
81 var hashLoad float64 // declared in hashmap.c
82 var HashLoad = &hashLoad
84 func memclrBytes(b []byte)
86 var MemclrBytes = memclrBytes
88 // func gogoBytes() int32
90 // var GogoBytes = gogoBytes