mirror of
https://github.com/zeldaret/af.git
synced 2026-09-27 05:55:46 -04:00
ef0a26fd48
* m_npc walk ok Co-authored-by: Maide <you@example.com> * fix protos * fixes * forgor some fixes * struct names --------- Co-authored-by: Maide <you@example.com>
23 lines
461 B
C
23 lines
461 B
C
#ifndef SYS_MATH_H
|
|
#define SYS_MATH_H
|
|
|
|
#include "ultra64.h"
|
|
#include "libc64/qrand.h"
|
|
|
|
/* Macro to generate a random float in the range of [0, n) */
|
|
#define RANDOM_F(n) (fqrand() * (f32)(n))
|
|
|
|
/* Macro to generate a random integer in the range of [0, n) */
|
|
#define RANDOM(n) ((int)RANDOM_F(n))
|
|
|
|
// void reverse_u32();
|
|
// void init_rnd();
|
|
// void ffact();
|
|
// void ifact();
|
|
// void powi();
|
|
// void sinf_table();
|
|
// void cosf_table();
|
|
// void tanf_table();
|
|
|
|
#endif
|