From f0d174b776fd0312c6e92193e6a27c516a0b2da6 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 12 Nov 2010 12:46:46 -0800 Subject: [PATCH] gc: fix arm build R=ken2 CC=golang-dev https://golang.org/cl/3074041 --- src/cmd/gc/builtin.c.boot | 2 ++ src/cmd/gc/runtime.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cmd/gc/builtin.c.boot b/src/cmd/gc/builtin.c.boot index 0435e16e570..380abc64235 100644 --- a/src/cmd/gc/builtin.c.boot +++ b/src/cmd/gc/builtin.c.boot @@ -86,7 +86,9 @@ char *runtimeimport = "func \"\".int64mod (? int64, ? int64) int64\n" "func \"\".uint64mod (? uint64, ? uint64) uint64\n" "func \"\".float64toint64 (? float64) int64\n" + "func \"\".float64touint64 (? float64) uint64\n" "func \"\".int64tofloat64 (? int64) float64\n" + "func \"\".uint64tofloat64 (? uint64) float64\n" "func \"\".complex128div (num complex128, den complex128) complex128\n" "\n" "$$\n"; diff --git a/src/cmd/gc/runtime.go b/src/cmd/gc/runtime.go index a35ef9f374b..174bc050e5e 100644 --- a/src/cmd/gc/runtime.go +++ b/src/cmd/gc/runtime.go @@ -117,6 +117,8 @@ func uint64div(uint64, uint64) uint64 func int64mod(int64, int64) int64 func uint64mod(uint64, uint64) uint64 func float64toint64(float64) int64 +func float64touint64(float64) uint64 func int64tofloat64(int64) float64 +func uint64tofloat64(uint64) float64 func complex128div(num complex128, den complex128) (quo complex128)