Link m_lib.c

This commit is contained in:
Cuyler36
2023-06-13 06:56:43 -04:00
parent 0d7104e296
commit e504495d73
6 changed files with 16 additions and 7 deletions
+3 -3
View File
@@ -50,9 +50,9 @@ m_malloc.c:
m_mail_password_check.c:
.text: [0x803BD250, 0x803BEC9C]
.data: [0x806566C0, 0x806571D8]
#m_lib.c: #sqrtf statics
# .text: [0x803BAB0C, 0x803BB960]
# .rodata: [0x80642640, 0x80642680]
m_lib.c:
.text: [0x803BAB0C, 0x803BB960]
.rodata: [0x80642640, 0x80642680]
m_mushroom.c:
.text: [0x803C8090, 0x803C90A8]
.rodata: [0x80642950, 0x80642960]
+1
View File
@@ -8,6 +8,7 @@
#define M_PI 3.14159265358979323846f
s16 sins(u16);
s16 coss(u16);
f32 fatan2(f32, f32);
+1
View File
@@ -10,6 +10,7 @@
#include "libultra/os_timer.h"
#include "libultra/os_thread.h"
#include "libultra/initialize.h"
#include "libc/math.h" /* TODO: sins and coss belong in libultra */
#define N64_SCREEN_HEIGHT 240
#define N64_SCREEN_WIDTH 320
+4 -2
View File
@@ -1,5 +1,5 @@
#ifndef SYS_MATH_H
#define SYS_MATH_H
#ifndef SYS_MATH3D_H
#define SYS_MATH3D_H
#include "types.h"
#include "m_lib.h"
@@ -8,6 +8,8 @@
extern "C" {
#endif
extern f32 Math3DVecLength(xyz_t* vec);
extern xyz_t ZeroVec;
#ifdef __cplusplus
+2 -2
View File
@@ -21,8 +21,8 @@ extern void new_Matrix(GAME* game);
extern void Matrix_softcv3_mult(xyz_t* src, s_xyz* dest);
extern Mtx* _MtxF_to_Mtx(MtxF* src, Mtx* dest);
extern void Matrix_mult(MtxF* m, s8 flag);
extern void Matrix_Position(xyz_t* wpos, xyz_t* screen_pos);
#ifdef __cplusplus
}
+5
View File
@@ -47,7 +47,12 @@
#include "m_actor.h"
#include "m_play.h"
#include "main.h"
#include "libultra/libultra.h"
#include "MSL_C/w_math.h"
#include "libc64/qrand.h"
#include "sys_matrix.h"
#include "sys_math.h"
#include "sys_math3d.h"
/**
* @brief Copy memory from the source buffer to the destination buffer.