export_test.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.
  4. // Export guts for testing.
  5. package runtime
  6. var Fadd64 = fadd64
  7. var Fsub64 = fsub64
  8. var Fmul64 = fmul64
  9. var Fdiv64 = fdiv64
  10. var F64to32 = f64to32
  11. var F32to64 = f32to64
  12. var Fcmp64 = fcmp64
  13. var Fintto64 = fintto64
  14. var F64toint = f64toint
  15. func entersyscall()
  16. func exitsyscall()
  17. func golockedOSThread() bool
  18. var Entersyscall = entersyscall
  19. var Exitsyscall = exitsyscall
  20. var LockedOSThread = golockedOSThread
  21. type LFNode struct {
  22. Next *LFNode
  23. Pushcnt uintptr
  24. }
  25. func lfstackpush_go(head *uint64, node *LFNode)
  26. func lfstackpop_go(head *uint64) *LFNode
  27. var LFStackPush = lfstackpush_go
  28. var LFStackPop = lfstackpop_go
  29. type ParFor struct {
  30. body *byte
  31. done uint32
  32. Nthr uint32
  33. nthrmax uint32
  34. thrseq uint32
  35. Cnt uint32
  36. Ctx *byte
  37. wait bool
  38. }
  39. func newParFor(nthrmax uint32) *ParFor
  40. func parForSetup(desc *ParFor, nthr, n uint32, ctx *byte, wait bool, body func(*ParFor, uint32))
  41. func parForDo(desc *ParFor)
  42. func parForIters(desc *ParFor, tid uintptr) (uintptr, uintptr)
  43. var NewParFor = newParFor
  44. var ParForSetup = parForSetup
  45. var ParForDo = parForDo
  46. func ParForIters(desc *ParFor, tid uint32) (uint32, uint32) {
  47. begin, end := parForIters(desc, uintptr(tid))
  48. return uint32(begin), uint32(end)
  49. }
  50. func testSchedLocalQueue()
  51. func testSchedLocalQueueSteal()
  52. var TestSchedLocalQueue1 = testSchedLocalQueue
  53. var TestSchedLocalQueueSteal1 = testSchedLocalQueueSteal
  54. // func haveGoodHash() bool
  55. // func stringHash(s string, seed uintptr) uintptr
  56. // func bytesHash(b []byte, seed uintptr) uintptr
  57. // func int32Hash(i uint32, seed uintptr) uintptr
  58. // func int64Hash(i uint64, seed uintptr) uintptr
  59. // var HaveGoodHash = haveGoodHash
  60. // var StringHash = stringHash
  61. // var BytesHash = bytesHash
  62. // var Int32Hash = int32Hash
  63. // var Int64Hash = int64Hash
  64. var hashLoad float64 // declared in hashmap.c
  65. var HashLoad = &hashLoad
  66. func memclrBytes(b []byte)
  67. var MemclrBytes = memclrBytes
  68. // func gogoBytes() int32
  69. // var GogoBytes = gogoBytes