Changeset 7bdcc45 in mainline for kernel/test/fpu
- Timestamp:
- 2010-12-16T16:38:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7837101
- Parents:
- 8e58f94 (diff), eb221e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/test/fpu
- Files:
-
- 4 edited
-
fpu1_ia64.c (modified) (3 diffs)
-
fpu1_x86.c (modified) (3 diffs)
-
mips2.c (modified) (4 diffs)
-
sse1.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1_ia64.c
r8e58f94 r7bdcc45 85 85 86 86 if ((int) (100000000 * e) != E_10e8) { 87 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, ( unative_t) (100000000 * e), (unative_t) E_10e8);87 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (sysarg_t) (100000000 * e), (sysarg_t) E_10e8); 88 88 atomic_inc(&threads_fault); 89 89 break; … … 118 118 119 119 if ((int) (1000000 * pi) != PI_10e8) { 120 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, ( unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));120 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (sysarg_t) (1000000 * pi), (sysarg_t) (PI_10e8 / 100)); 121 121 atomic_inc(&threads_fault); 122 122 break; … … 161 161 162 162 while (atomic_get(&threads_ok) != total) { 163 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 163 TPRINTF("Threads left: %" PRIua "\n", 164 total - atomic_get(&threads_ok)); 164 165 thread_sleep(1); 165 166 } -
kernel/test/fpu/fpu1_x86.c
r8e58f94 r7bdcc45 82 82 83 83 if ((int) (100000000 * e) != E_10e8) { 84 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8); 84 TPRINTF("tid%" PRIu64 ": e*10e8=%" PRIun " should be %" PRIun "\n", 85 THREAD->tid, (sysarg_t) (100000000 * e), (sysarg_t) E_10e8); 85 86 atomic_inc(&threads_fault); 86 87 break; … … 115 116 116 117 if ((int) (100000000 * pi) != PI_10e8) { 117 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 118 TPRINTF("tid%" PRIu64 ": pi*10e8=%" PRIun " should be %" PRIun "\n", 119 THREAD->tid, (sysarg_t) (100000000 * pi), (sysarg_t) PI_10e8); 118 120 atomic_inc(&threads_fault); 119 121 break; … … 158 160 159 161 while (atomic_get(&threads_ok) != total) { 160 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));162 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 161 163 thread_sleep(1); 162 164 } -
kernel/test/fpu/mips2.c
r8e58f94 r7bdcc45 48 48 { 49 49 int i; 50 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);50 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 51 51 int after_arg __attribute__((aligned(16))); 52 52 … … 80 80 { 81 81 int i; 82 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);82 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 83 83 int after_arg __attribute__((aligned(16))); 84 84 … … 123 123 thread_t *t; 124 124 125 if (!(t = thread_create(testit1, (void *) (( unative_t) 2 * i), TASK, 0, "testit1", false))) {125 if (!(t = thread_create(testit1, (void *) ((sysarg_t) 2 * i), TASK, 0, "testit1", false))) { 126 126 TPRINTF("could not create thread %u\n", 2 * i); 127 127 break; … … 130 130 total++; 131 131 132 if (!(t = thread_create(testit2, (void *) (( unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {132 if (!(t = thread_create(testit2, (void *) ((sysarg_t) 2 * i + 1), TASK, 0, "testit2", false))) { 133 133 TPRINTF("could not create thread %u\n", 2 * i + 1); 134 134 break; -
kernel/test/fpu/sse1.c
r8e58f94 r7bdcc45 48 48 { 49 49 int i; 50 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);50 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 51 51 int after_arg __attribute__((aligned(16))); 52 52 … … 79 79 { 80 80 int i; 81 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);81 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 82 82 int after_arg __attribute__((aligned(16))); 83 83 … … 121 121 thread_t *t; 122 122 123 if (!(t = thread_create(testit1, (void *) (( unative_t) 2 * i), TASK, 0, "testit1", false))) {123 if (!(t = thread_create(testit1, (void *) ((sysarg_t) 2 * i), TASK, 0, "testit1", false))) { 124 124 TPRINTF("could not create thread %u\n", 2 * i); 125 125 break; … … 128 128 total++; 129 129 130 if (!(t = thread_create(testit2, (void *) (( unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {130 if (!(t = thread_create(testit2, (void *) ((sysarg_t) 2 * i + 1), TASK, 0, "testit2", false))) { 131 131 TPRINTF("could not create thread %u\n", 2 * i + 1); 132 132 break; … … 142 142 143 143 while (atomic_get(&threads_ok) != total) { 144 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));144 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 145 145 thread_sleep(1); 146 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
