Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2020 → Rev 1882

/trunk/kernel/test/fpu/fpu1/test.c/fpu1.c
38,12 → 38,6
#include <arch.h>
#include <arch/arch.h>
 
#ifdef CONFIG_BENCH
#include <arch/cycle.h>
#endif
 
#if (defined(ia32) || defined(amd64) || defined(ia64) || defined(ia32xen))
 
#define THREADS 150*2
#define ATTEMPTS 100
 
154,11 → 148,8
atomic_inc(&threads_ok);
}
 
void test_fpu1(void)
void test(void)
{
#ifdef CONFIG_BENCH
uint64_t t0 = get_cycle();
#endif
thread_t *t;
int i;
 
184,17 → 175,4
;
printf("Test passed.\n");
#ifdef CONFIG_BENCH
uint64_t dt = get_cycle() - t0;
printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
#endif
}
 
#else
 
void test_fpu1(void)
{
printf("This test is available only on Intel/AMD platforms.");
}
 
#endif