|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>Macros | |
| #define | ROUNDS 8 /* times the whole workload repeats */ |
| #define | HOT_ROUNDS 300 /* spin() calls per hot_path() (the hot caller) */ |
| #define | WARM_ROUNDS 60 /* spin() calls per warm_path() (the cool caller)*/ |
| #define | SPIN_WORK 4000 /* FP iterations inside each spin() call */ |
| #define | FIB_N 19 /* recursion depth: a self-edge with modest time */ |
Functions | |
| static double | spin (int iters) |
| static double | hot_path (int rounds) |
| static double | warm_path (int rounds) |
| static long | fibonacci (int n) |
| static void | workload (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| static volatile double | sink |
| static volatile int | spin_iters = SPIN_WORK |
| #define FIB_N 19 /* recursion depth: a self-edge with modest time */ |
Referenced by workload().
Referenced by workload().
| #define SPIN_WORK 4000 /* FP iterations inside each spin() call */ |
Referenced by workload().
|
static |
References fibonacci().
Referenced by fibonacci(), and workload().
|
static |
References spin, and spin_iters.
Referenced by workload().
| int main | ( | int | argc, |
| char * | argv[] ) |
References printf, ROUNDS, sink, and workload().
|
static |
|
static |
References spin, and spin_iters.
Referenced by workload().
|
static |
References FIB_N, fibonacci(), hot_path(), HOT_ROUNDS, sink, warm_path(), and WARM_ROUNDS.
Referenced by main().
|
static |
Referenced by main(), and workload().
|
static |
Referenced by hot_path(), and warm_path().