Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
gte-math-bench.cpp File Reference
#include "common/hardware/counters.h"
#include "common/hardware/pcsxhw.h"
#include "common/syscalls/syscalls.h"
#include "psyqo/gte-kernels.hh"
#include "psyqo/gte-registers.hh"
#include "psyqo/matrix.hh"
#include "psyqo/soft-math.hh"
#include "psyqo/vector.hh"
Include dependency graph for gte-math-bench.cpp:

Classes

struct  Arm
 

Macros

#define TIME_START()   uint16_t _t_before = COUNTERS[2].value
 
#define TIME_END()   ((uint32_t)(uint16_t)(COUNTERS[2].value - _t_before))
 
#define REP4(x)   x x x x
 
#define REP16(x)   REP4(x) REP4(x) REP4(x) REP4(x)
 
#define REP256(x)
 

Typedefs

typedef uint32_t(* bench_fn) (unsigned n)
 

Functions

int main ()
 

Macro Definition Documentation

◆ REP16

#define REP16 (   x)    REP4(x) REP4(x) REP4(x) REP4(x)

◆ REP256

#define REP256 (   x)
Value:
REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) \
REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x) REP16(x)
#define REP16(x)
Definition gte-math-bench.cpp:860

◆ REP4

#define REP4 (   x)    x x x x

◆ TIME_END

#define TIME_END ( )    ((uint32_t)(uint16_t)(COUNTERS[2].value - _t_before))

◆ TIME_START

#define TIME_START ( )    uint16_t _t_before = COUNTERS[2].value

Typedef Documentation

◆ bench_fn

typedef uint32_t(* bench_fn) (unsigned n)

Function Documentation

◆ main()

int main ( void  )