Files
af/include/sys_math.h
T
Prakxo ef0a26fd48 NPC PR 1/3 ok (#96)
* 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>
2023-09-15 09:36:15 -07:00

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