diff options
author | Carl Shapiro <cshapiro@google.com> | 2011-04-20 16:51:38 -0700 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2011-04-20 16:51:38 -0700 |
commit | 1e1433e78f560a01744e870c19c162ab88df9dc1 (patch) | |
tree | 71b961cb1e81cb2a23ab47d121c6bf3f725879d2 /vm/test | |
parent | 58ddbada8c4d4a74a7d3ea0c7379c7e1fec6c255 (diff) | |
download | android_dalvik-1e1433e78f560a01744e870c19c162ab88df9dc1.tar.gz android_dalvik-1e1433e78f560a01744e870c19c162ab88df9dc1.tar.bz2 android_dalvik-1e1433e78f560a01744e870c19c162ab88df9dc1.zip |
Remove unneeded void argument list declarations.
Change-Id: Ica749f6defa890363ec531b29e25bc415dc2cbb9
Diffstat (limited to 'vm/test')
-rw-r--r-- | vm/test/AtomicTest.cpp | 34 | ||||
-rw-r--r-- | vm/test/TestHash.cpp | 2 | ||||
-rw-r--r-- | vm/test/TestIndirectRefTable.cpp | 6 |
3 files changed, 21 insertions, 21 deletions
diff --git a/vm/test/AtomicTest.cpp b/vm/test/AtomicTest.cpp index 52f29cc3b..26ac2bc22 100644 --- a/vm/test/AtomicTest.cpp +++ b/vm/test/AtomicTest.cpp @@ -66,7 +66,7 @@ static int64_t wideCasTest = 0x6600000077000000LL; /* * Get a relative time value. */ -static int64_t getRelativeTimeNsec(void) +static int64_t getRelativeTimeNsec() { #define HAVE_POSIX_CLOCKS #ifdef HAVE_POSIX_CLOCKS @@ -87,17 +87,17 @@ static int64_t getRelativeTimeNsec(void) * If these get inlined the compiler may figure out what we're up to and * completely elide the operations. */ -static void incr(void) __attribute__((noinline)); -static void decr(void) __attribute__((noinline)); +static void incr() __attribute__((noinline)); +static void decr() __attribute__((noinline)); static void add(int addVal) __attribute__((noinline)); static int compareAndSwap(int oldVal, int newVal, int* addr) __attribute__((noinline)); static int compareAndSwapWide(int64_t oldVal, int64_t newVal, int64_t* addr) __attribute__((noinline)); -static void incr(void) +static void incr() { incTest++; } -static void decr(void) +static void decr() { decTest--; } @@ -207,16 +207,16 @@ static int64_t testAtomicSpeedSub(int repeatCount) for (i = repeatCount / 10; i != 0; i--) { if (USE_ATOMIC) { // succeed 10x - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); - (void) android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); + android_atomic_release_cas(7, 7, valuePtr); } else { // succeed 10x compareAndSwap(7, 7, valuePtr); @@ -239,7 +239,7 @@ static int64_t testAtomicSpeedSub(int repeatCount) return end - start; } -static void testAtomicSpeed(void) +static void testAtomicSpeed() { static const int kIterations = 10; static const int kRepeatCount = 5 * 1000 * 1000; @@ -264,7 +264,7 @@ static void testAtomicSpeed(void) /* * Start tests, show results. */ -bool dvmTestAtomicSpeed(void) +bool dvmTestAtomicSpeed() { pthread_t threads[THREAD_COUNT]; void *(*startRoutine)(void*) = atomicTest; diff --git a/vm/test/TestHash.cpp b/vm/test/TestHash.cpp index b45802803..9eabbb6e9 100644 --- a/vm/test/TestHash.cpp +++ b/vm/test/TestHash.cpp @@ -75,7 +75,7 @@ static void dumpIterator(HashTable* pTab) /* * Some quick hash table tests. */ -bool dvmTestHash(void) +bool dvmTestHash() { HashTable* pTab; char tmpStr[64]; diff --git a/vm/test/TestIndirectRefTable.cpp b/vm/test/TestIndirectRefTable.cpp index 155ba32a9..a72e2b017 100644 --- a/vm/test/TestIndirectRefTable.cpp +++ b/vm/test/TestIndirectRefTable.cpp @@ -28,7 +28,7 @@ /* * Basic add/get/delete tests in an unsegmented table. */ -static bool basicTest(void) +static bool basicTest() { static const int kTableMax = 20; IndirectRefTable irt; @@ -313,7 +313,7 @@ bail: /* * Test operations on a segmented table. */ -static bool segmentTest(void) +static bool segmentTest() { static const int kTableMax = 20; IndirectRefTable irt; @@ -471,7 +471,7 @@ bail: /* * Some quick tests. */ -bool dvmTestIndirectRefTable(void) +bool dvmTestIndirectRefTable() { if (!basicTest()) { LOGE("IRT basic test failed\n"); |