LEFT | RIGHT |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Export guts for testing. | 5 // Export guts for testing. |
6 | 6 |
7 package runtime | 7 package runtime |
8 | 8 |
9 var Fadd64 = fadd64 | 9 var Fadd64 = fadd64 |
10 var Fsub64 = fsub64 | 10 var Fsub64 = fsub64 |
11 var Fmul64 = fmul64 | 11 var Fmul64 = fmul64 |
12 var Fdiv64 = fdiv64 | 12 var Fdiv64 = fdiv64 |
13 var F64to32 = f64to32 | 13 var F64to32 = f64to32 |
14 var F32to64 = f32to64 | 14 var F32to64 = f32to64 |
15 var Fcmp64 = fcmp64 | 15 var Fcmp64 = fcmp64 |
16 var Fintto64 = fintto64 | 16 var Fintto64 = fintto64 |
17 var F64toint = f64toint | 17 var F64toint = f64toint |
18 | 18 |
19 func entersyscall() | 19 func entersyscall() |
20 func exitsyscall() | 20 func exitsyscall() |
21 func golockedOSThread() bool | 21 func golockedOSThread() bool |
| 22 func stackguard() (sp, limit uintptr) |
22 | 23 |
23 var Entersyscall = entersyscall | 24 var Entersyscall = entersyscall |
24 var Exitsyscall = exitsyscall | 25 var Exitsyscall = exitsyscall |
25 var LockedOSThread = golockedOSThread | 26 var LockedOSThread = golockedOSThread |
| 27 var Stackguard = stackguard |
26 | 28 |
27 func CTestAtomic64() | 29 func CTestAtomic64(isShort bool) |
28 func CTestLockFreeStack() | 30 func CTestLockFreeStack(isShort bool) |
29 func CTestLockFreeStackStress() | 31 func CTestLockFreeStackStress(isShort bool) |
30 func CTestParfor() | 32 func CTestParfor(isShort bool) |
31 func CTestParforSetup() | 33 func CTestParforSetup(isShort bool) |
32 func CTestParforNonblock() | 34 func CTestParforNonblock(isShort bool) |
33 func CTestParforParallel() | 35 func CTestParforParallel(isShort bool) |
| 36 func CTestGcprocs(isShort bool) |
LEFT | RIGHT |