(Wii) benchmark.c compiles now for Wii too
This commit is contained in:
parent
535045a48b
commit
10da277059
|
@ -16,13 +16,15 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(__CELLOS_LV2__) || defined(GEKKO)
|
||||||
|
#ifndef _PPU_INTRINSICS_H
|
||||||
#include <ppu_intrinsics.h>
|
#include <ppu_intrinsics.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned long long rarch_get_performance_counter(void)
|
unsigned long long rarch_get_performance_counter(void)
|
||||||
{
|
{
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(__CELLOS_LV2__) || defined(GEKKO)
|
||||||
unsigned long long time = __mftb();
|
unsigned long long time = __mftb();
|
||||||
#endif
|
#endif
|
||||||
return time;
|
return time;
|
||||||
|
|
|
@ -28,6 +28,11 @@ unsigned long long rarch_get_performance_counter(void);
|
||||||
#define RARCH_PERFORMANCE_INIT(X) performance_counter_t (X)
|
#define RARCH_PERFORMANCE_INIT(X) performance_counter_t (X)
|
||||||
#define RARCH_PERFORMANCE_START(X) ((X).start = rarch_get_performance_counter())
|
#define RARCH_PERFORMANCE_START(X) ((X).start = rarch_get_performance_counter())
|
||||||
#define RARCH_PERFORMANCE_STOP(X) ((X).stop = rarch_get_performance_counter() - (X).start)
|
#define RARCH_PERFORMANCE_STOP(X) ((X).stop = rarch_get_performance_counter() - (X).start)
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define RARCH_PERFORMANCE_LOG(functionname, X) RARCH_LOG("Time taken (%s): %I64u.\n", functionname, (X).stop)
|
||||||
|
#else
|
||||||
#define RARCH_PERFORMANCE_LOG(functionname, X) RARCH_LOG("Time taken (%s): %llu.\n", functionname, (X).stop)
|
#define RARCH_PERFORMANCE_LOG(functionname, X) RARCH_LOG("Time taken (%s): %llu.\n", functionname, (X).stop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
default_paths_t default_paths;
|
default_paths_t default_paths;
|
||||||
|
|
||||||
#if defined(__CELLOS_LV2__)
|
|
||||||
#include "../../benchmark.c"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
CONSOLE EXTENSIONS
|
CONSOLE EXTENSIONS
|
||||||
|
@ -45,6 +42,10 @@ CONSOLE EXTENSIONS
|
||||||
#include "../rarch_console_exec.c"
|
#include "../rarch_console_exec.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__CELLOS_LV2__) || defined(GEKKO)
|
||||||
|
#include "../../benchmark.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_RSOUND
|
#ifdef HAVE_RSOUND
|
||||||
#include "../rarch_console_rsound.c"
|
#include "../rarch_console_rsound.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue