diff options
author | Stephen Hines <srhines@google.com> | 2010-10-07 11:40:38 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-10-07 11:40:38 -0700 |
commit | 1d73e57a044a83d8a4c32ab1e6c9ccfcc3f708d6 (patch) | |
tree | 8fa2e5cd476cfd8f88914786f51efb9278f4fa11 /libs/rs/java | |
parent | 94e461309b5f6ad0a66508aa1c33330ec9ae13db (diff) | |
download | frameworks_base-1d73e57a044a83d8a4c32ab1e6c9ccfcc3f708d6.zip frameworks_base-1d73e57a044a83d8a4c32ab1e6c9ccfcc3f708d6.tar.gz frameworks_base-1d73e57a044a83d8a4c32ab1e6c9ccfcc3f708d6.tar.bz2 |
Add RS testing for long and long long.
Change-Id: I42716b1a273c79103474b2e96441e7e3eac020b9
Diffstat (limited to 'libs/rs/java')
-rw-r--r-- | libs/rs/java/tests/src/com/android/rs/test/primitives.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/java/tests/src/com/android/rs/test/primitives.rs b/libs/rs/java/tests/src/com/android/rs/test/primitives.rs index 5312bcc..012af9c 100644 --- a/libs/rs/java/tests/src/com/android/rs/test/primitives.rs +++ b/libs/rs/java/tests/src/com/android/rs/test/primitives.rs @@ -2,15 +2,21 @@ #pragma rs export_func(primitives_test) +#pragma rs export_var(floatTest, doubleTest, charTest, shortTest, intTest, longTest, longlongTest) + // Testing primitive types static float floatTest = 1.99f; static double doubleTest = 2.05; static char charTest = -8; static short shortTest = -16; static int intTest = -32; +static long longTest = 17179869184l; // 1 << 34 +static long long longlongTest = 68719476736l; // 1 << 36 + static uchar ucharTest = 8; static ushort ushortTest = 16; static uint uintTest = 32; +static int64_t int64_tTest = -17179869184l; // - 1 << 34 static bool test_primitive_types(uint32_t index) { bool failed = false; @@ -21,9 +27,13 @@ static bool test_primitive_types(uint32_t index) { _RS_ASSERT(charTest == -8); _RS_ASSERT(shortTest == -16); _RS_ASSERT(intTest == -32); + _RS_ASSERT(longTest == 17179869184l); + _RS_ASSERT(longlongTest == 68719476736l); + _RS_ASSERT(ucharTest == 8); _RS_ASSERT(ushortTest == 16); _RS_ASSERT(uintTest == 32); + _RS_ASSERT(int64_tTest == -17179869184l); float time = end(index); |