diff options
author | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-19 14:12:43 -0700 |
---|---|---|
committer | Jean-Luc Brouillet <jeanluc@google.com> | 2015-05-20 13:44:44 -0700 |
commit | 2089cddba3e6e6bb7643ed670ee038dce0b8db6e (patch) | |
tree | 32e15820faa67ca7a02c8cf4c3e68f3a945b2ea6 /java/tests/RsTest/src/com/android/rs/test/fp_mad.rs | |
parent | c705223e0e5dff3bbd10f82c216784316f3c3398 (diff) | |
download | rs-2089cddba3e6e6bb7643ed670ee038dce0b8db6e.tar.gz |
Fix warnings in RenderScript sources.
An upcoming CL fixes a bug where many warning were disabled. This fixes
the warnings (that are turned into errors in most of our builds) before
the CL lands.
Also, adds long & unsigned long testing for a few tests.
Change-Id: Id6826e968db2d06ef9910fe775309d1c3872cdc5
Diffstat (limited to 'java/tests/RsTest/src/com/android/rs/test/fp_mad.rs')
-rw-r--r-- | java/tests/RsTest/src/com/android/rs/test/fp_mad.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/java/tests/RsTest/src/com/android/rs/test/fp_mad.rs b/java/tests/RsTest/src/com/android/rs/test/fp_mad.rs index b6f2b2a6..62ef3ecf 100644 --- a/java/tests/RsTest/src/com/android/rs/test/fp_mad.rs +++ b/java/tests/RsTest/src/com/android/rs/test/fp_mad.rs @@ -8,7 +8,6 @@ static float4 data_f4[1025]; static void test_mad4(uint32_t index) { start(); - float total = 0; // Do ~1 billion ops for (int ct=0; ct < 1000 * (1000 / 80); ct++) { for (int i=0; i < (1000); i++) { @@ -32,7 +31,6 @@ static void test_mad4(uint32_t index) { static void test_mad(uint32_t index) { start(); - float total = 0; // Do ~1 billion ops for (int ct=0; ct < 1000 * (1000 / 20); ct++) { for (int i=0; i < (1000); i++) { @@ -56,7 +54,6 @@ static void test_mad(uint32_t index) { static void test_norm(uint32_t index) { start(); - float total = 0; // Do ~10 M ops for (int ct=0; ct < 1000 * 10; ct++) { for (int i=0; i < (1000); i++) { @@ -71,7 +68,6 @@ static void test_norm(uint32_t index) { static void test_sincos4(uint32_t index) { start(); - float total = 0; // Do ~10 M ops for (int ct=0; ct < 1000 * 10 / 4; ct++) { for (int i=0; i < (1000); i++) { @@ -86,7 +82,6 @@ static void test_sincos4(uint32_t index) { static void test_sincos(uint32_t index) { start(); - float total = 0; // Do ~10 M ops for (int ct=0; ct < 1000 * 10; ct++) { for (int i=0; i < (1000); i++) { @@ -127,7 +122,6 @@ static void test_clamp(uint32_t index) { static void test_clamp4(uint32_t index) { start(); - float total = 0; // Do ~100 M ops for (int ct=0; ct < 1000 * 100 /4; ct++) { for (int i=0; i < (1000); i++) { @@ -170,5 +164,3 @@ void fp_mad_test(uint32_t index, int test_num) { rsDebug("fp_mad_test PASSED", 0); rsSendToClientBlocking(RS_MSG_TEST_PASSED); } - - |