1/*
2 * gomacro - A Go interpreter with Lisp-like macros
3 *
4 * Copyright (C) 2018-2019 Massimiliano Ghilardi
5 *
6 *     This Source Code Form is subject to the terms of the Mozilla Public
7 *     License, v. 2.0. If a copy of the MPL was not distributed with this
8 *     file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 *
10 *
11 * fib.go
12 *
13 *  Created on May 23, 2018
14 *      Author Massimiliano Ghilardi
15 */
16
17package stack_maps
18
19func fib(n int) int {
20	if n <= 2 {
21		return 1
22	}
23	return fib(n-1) + fib(n-2)
24}
25
26func fib_asm(n int) int /* {
27	return fib(n)
28} */
29