| 1 |
// Copyright 2018 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 |
|
| 5 |
package runtime |
| 6 |
|
| 7 |
import "unsafe" |
| 8 |
|
| 9 |
// Called from compiler-generated code; declared for go vet. |
| 10 |
func udiv() |
| 11 |
func _div() |
| 12 |
func _divu() |
| 13 |
func _mod() |
| 14 |
func _modu() |
| 15 |
|
| 16 |
// Called from assembly only; declared for go vet. |
| 17 |
func usplitR0() |
| 18 |
func load_g() |
| 19 |
func save_g() |
| 20 |
func emptyfunc() |
| 21 |
func _initcgo() |
| 22 |
func read_tls_fallback() |
| 23 |
|
| 24 |
//go:noescape |
| 25 |
func asmcgocall_no_g(fn, arg unsafe.Pointer) |
| 26 |
|
| 27 |
// getfp returns the frame pointer register of its caller or 0 if not implemented. |
| 28 |
// TODO: Make this a compiler intrinsic |
| 29 |
// |
| 30 |
//go:nosplit |
| 31 |
func getfp() uintptr { return 0 } |