Changeset 46c20c8 in mainline for kernel/test/fpu
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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:
-
- 7 edited
-
fpu1_ia64.c (modified) (2 diffs)
-
fpu1_skip.c (modified) (1 diff)
-
fpu1_x86.c (modified) (4 diffs)
-
mips2.c (modified) (2 diffs)
-
mips2_skip.c (modified) (1 diff)
-
sse1.c (modified) (2 diffs)
-
sse1_skip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1_ia64.c
rfb150d78 r46c20c8 126 126 } 127 127 128 c har *test_fpu1(void)128 const char *test_fpu1(void) 129 129 { 130 unsigned int i, total = 0; 130 unsigned int i; 131 atomic_count_t total = 0; 131 132 132 133 waitq_initialize(&can_start); … … 159 160 waitq_wakeup(&can_start, WAKEUP_ALL); 160 161 161 while (atomic_get(&threads_ok) != (long) total) { 162 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 162 while (atomic_get(&threads_ok) != total) { 163 TPRINTF("Threads left: %" PRIua "\n", 164 total - atomic_get(&threads_ok)); 163 165 thread_sleep(1); 164 166 } -
kernel/test/fpu/fpu1_skip.c
rfb150d78 r46c20c8 29 29 #include <test.h> 30 30 31 c har *test_fpu1(void)31 const char *test_fpu1(void) 32 32 { 33 33 return NULL; -
kernel/test/fpu/fpu1_x86.c
rfb150d78 r46c20c8 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, (unative_t) (100000000 * e), (unative_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, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 118 120 atomic_inc(&threads_fault); 119 121 break; … … 123 125 } 124 126 125 c har *test_fpu1(void)127 const char *test_fpu1(void) 126 128 { 127 unsigned int i, total = 0; 129 unsigned int i; 130 atomic_count_t total = 0; 128 131 129 132 waitq_initialize(&can_start); … … 156 159 waitq_wakeup(&can_start, WAKEUP_ALL); 157 160 158 while (atomic_get(&threads_ok) != (long)total) {159 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));161 while (atomic_get(&threads_ok) != total) { 162 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 160 163 thread_sleep(1); 161 164 } -
kernel/test/fpu/mips2.c
rfb150d78 r46c20c8 109 109 110 110 111 c har *test_mips2(void)111 const char *test_mips2(void) 112 112 { 113 unsigned int i, total = 0; 113 unsigned int i; 114 atomic_count_t total = 0; 114 115 115 116 waitq_initialize(&can_start); … … 138 139 139 140 TPRINTF("ok\n"); 140 141 141 142 thread_sleep(1); 142 143 waitq_wakeup(&can_start, WAKEUP_ALL); 143 144 144 while (atomic_get(&threads_ok) != (long)total) {145 while (atomic_get(&threads_ok) != total) { 145 146 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_ok)); 146 147 thread_sleep(1); -
kernel/test/fpu/mips2_skip.c
rfb150d78 r46c20c8 29 29 #include <test.h> 30 30 31 c har *test_mips2(void)31 const char *test_mips2(void) 32 32 { 33 33 return NULL; -
kernel/test/fpu/sse1.c
rfb150d78 r46c20c8 107 107 } 108 108 109 c har *test_sse1(void)109 const char *test_sse1(void) 110 110 { 111 unsigned int i, total = 0; 111 unsigned int i; 112 atomic_count_t total = 0; 112 113 113 114 waitq_initialize(&can_start); … … 140 141 waitq_wakeup(&can_start, WAKEUP_ALL); 141 142 142 while (atomic_get(&threads_ok) != (long)total) {143 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));143 while (atomic_get(&threads_ok) != total) { 144 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 144 145 thread_sleep(1); 145 146 } -
kernel/test/fpu/sse1_skip.c
rfb150d78 r46c20c8 29 29 #include <test.h> 30 30 31 c har *test_sse1(void)31 const char *test_sse1(void) 32 32 { 33 33 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
