diff options
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; +} |