Changeset f272cb8 in mainline for kernel/test/fpu/sse1.c
- Timestamp:
- 2006-12-11T19:19:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70b6de1
- Parents:
- 50661ab
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/sse1.c
r50661ab rf272cb8 37 37 38 38 #include <arch.h> 39 40 #ifdef CONFIG_BENCH 41 #include <arch/cycle.h> 42 #endif 43 44 #if (defined(ia32) || defined(amd64) || defined(ia32xen)) 39 45 40 46 #define THREADS 50 … … 106 112 107 113 108 void test (void)114 void test_sse1(void) 109 115 { 116 #ifdef CONFIG_BENCH 117 uint64_t t0 = get_cycle(); 118 #endif 110 119 thread_t *t; 111 120 int i; … … 134 143 135 144 printf("Test passed.\n"); 145 #ifdef CONFIG_BENCH 146 uint64_t dt = get_cycle() - t0; 147 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 148 #endif 136 149 } 150 151 #else 152 153 void test_sse1(void) 154 { 155 printf("This test is available only on SSE enabled platforms."); 156 } 157 158 #endif
Note:
See TracChangeset
for help on using the changeset viewer.