repo.or.cz
/
android_tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git]
/
ndk
/
tests
/
device
/
test-gnustl-full
/
unit
/
fib.h
blob
9c740384bc158fab79a5cd1fd1777ad795da6f61
1
#ifndef _fib_h
2
#define _fib_h
3
class
Fibonacci
4
{
5
public
:
6
Fibonacci
() :
v1
(
0
),
v2
(
1
) {}
7
inline
int
operator
()();
8
private
:
9
int
v1
;
10
int
v2
;
11
};
12
13
inline
int
14
Fibonacci
::
operator
()()
15
{
16
int
r
=
v1
+
v2
;
17
v1
=
v2
;
18
v2
=
r
;
19
return
v1
;
20
}
21
#endif
// _fib_h