diff options
author | Russ Cox <rsc@golang.org> | 2009-10-14 18:08:10 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-14 18:08:10 -0700 |
commit | 3e916d927d418cbeca49e50077f99c88dc7751d7 (patch) | |
tree | 00952921c702b3e708c4b0085da2c1ccbe9dd680 /usr/rsc/fib/gcc.c | |
parent | 746fb9c39aa121b957c85a9242f9c29379fb72fc (diff) | |
download | golang-3e916d927d418cbeca49e50077f99c88dc7751d7.tar.gz |
delete one cgo playpen
R=r
DELTA=111 (0 added, 111 deleted, 0 changed)
OCL=35739
CL=35744
Diffstat (limited to 'usr/rsc/fib/gcc.c')
-rw-r--r-- | usr/rsc/fib/gcc.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/usr/rsc/fib/gcc.c b/usr/rsc/fib/gcc.c deleted file mode 100644 index a89839031..000000000 --- a/usr/rsc/fib/gcc.c +++ /dev/null @@ -1,34 +0,0 @@ -// 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. - -#include <stdint.h> - -typedef int32_t int32; - -static int32 -fib1(int32 n) -{ - int32 a, b, t; - - a = 0; - b = 1; - for(; n>0; n--) { - t = a; - a = b; - b += t; - } - return a; -} - -void -fib(void *v) -{ - struct { // 6g func(n int) int - int32 n; - int32 pad; - int32 ret; - } *args = v; - - args->ret = fib1(args->n); -} |