This commit is contained in:
engineer124 2023-10-22 03:35:44 +11:00
parent b4626812f6
commit 9c2c3f1bb8
4 changed files with 5 additions and 6 deletions

View File

@ -87,9 +87,6 @@
#define VTX_T(x, y, z, s, t, cr, cg, cb, a) \
{ { x, y, z }, 0, { s, t }, { cr, cg, cb, a }, }
#define SQ(x) ((x) * (x))
#define ABS(x) ((x) >= 0 ? (x) : -(x))
#define ABS_ALT(x) ((x) < 0 ? -(x) : (x))
#define DECR(x) ((x) == 0 ? 0 : --(x))
#define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x))

View File

@ -1459,7 +1459,7 @@ extern f32 D_801E0134;
extern f32 D_801E0138;
extern f32 D_801E013C;
extern f32 D_801E0140;
extern f32 Math3D_CosOut_min_length;
extern f32 Math3D_AngleBetweenVectors_min_length;
extern f32 D_801E0148;
extern f32 D_801E014C;
extern f32 Math3D_UnitNormalVector_min_length;

View File

@ -1,5 +1,6 @@
#include "libc/math.h"
#include "macros.h"
#include "ultra64.h"
#include "z64math.h"
#pragma weak cosf = __cosf

View File

@ -1,5 +1,6 @@
#include "libc/math.h"
#include "macros.h"
#include "ultra64.h"
#include "z64math.h"
#pragma weak sinf = __sinf