diff options
author | Sven Gothel <[email protected]> | 2011-07-23 01:50:21 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-23 01:50:21 +0200 |
commit | 967782f7bdbd0dd73c2e3ea448a0c9d44552a7d9 (patch) | |
tree | e05edc4bed58c9ff8503728b0a6db07b67032144 /test/native/cross-android-armv7-tst1/hello-fp.c | |
parent | 2d57b3cbb4a8189ecb5523f6d8de3aa37db78a13 (diff) |
Adding native crosscompile test to ubuntu/armv7 and android/armv7
Diffstat (limited to 'test/native/cross-android-armv7-tst1/hello-fp.c')
-rw-r--r-- | test/native/cross-android-armv7-tst1/hello-fp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/native/cross-android-armv7-tst1/hello-fp.c b/test/native/cross-android-armv7-tst1/hello-fp.c new file mode 100644 index 0000000..d94f660 --- /dev/null +++ b/test/native/cross-android-armv7-tst1/hello-fp.c @@ -0,0 +1,16 @@ +#include <stdio.h> +#include <math.h> + +int main(int argc, char ** argv) { + double d1 = 3.14; + double d2 = 2.0; + double dr; + + dr = d1 * d2; + printf("hello %lf * %lf = %lf\n", d1, d2, dr); + + dr = sin(d1); + printf("hello sin(%lf) = %lf\n", d1, dr); + + return 0; +} |