1
0
mirror of https://github.com/golang/go synced 2024-10-04 11:21:21 -06:00
go/src/cmd/gc/sys.go

71 lines
1.5 KiB
Go
Raw Normal View History

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package foop // rename to avoid redeclaration
func mal(uint32) *any;
func breakpoint();
func panicl(int32);
func printbool(bool);
func printfloat(double);
func printint(int64);
func printstring(string);
func printpointer(*byte);
func catstring(string, string) string;
func cmpstring(string, string) int32;
func slicestring(string, int32, int32) string;
func indexstring(string, int32) byte;
func intstring(int64) string;
func byteastring(*byte, int32) string;
func mkiface(*byte, *byte, *struct{}) interface{};
2008-06-10 22:29:57 -06:00
func frexp(float64) (int32, float64); // break fp into exp,fract
func ldexp(int32, float64) float64; // make fp from exp,fract
func modf(float64) (float64, float64); // break fp into double.double
func newmap(keysize uint32, valsize uint32,
keyalg uint32, valalg uint32,
hint uint32) (hmap *map[any]any);
func mapaccess1(hmap *map[any]any, key any) (val any);
func mapaccess2(hmap *map[any]any, key any) (val any, pres bool);
func mapdelete(hmap *map[any]any, key any);
func mapassign(hmap *map[any]any, any);
export
mal
breakpoint
// print panic
panicl
printbool
printfloat
printint
printstring
printpointer
// op string
catstring
cmpstring
slicestring
indexstring
intstring
byteastring
mkiface
2008-06-10 22:29:57 -06:00
frexp
ldexp
modf
// op map
newmap
mapaccess1
mapaccess2
mapdelete
mapassign
;