mirror of
https://github.com/zeldaret/tp
synced 2026-06-02 10:10:35 -04:00
Renamed instances of msl_c -> MSL_C because
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "JSystem/J2DGraph/J2DTextBox.h"
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "msl_c/MSL_Common/Src/printf.h"
|
||||
#include "MSL_C/MSL_Common/Src/printf.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DPrint {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define JUTFONT_H
|
||||
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "msl_c/MSL_Common/Src/string.h"
|
||||
#include "MSL_C/MSL_Common/Src/string.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef MSL_COMMON_SRC_CHAR_IO_H
|
||||
#define MSL_COMMON_SRC_CHAR_IO_H
|
||||
|
||||
#include "msl_c/MSL_Common/Src/ansi_files.h"
|
||||
#include "MSL_C/MSL_Common/Src/ansi_files.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" int fputs(const char*, FILE*);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef MSL_MATH_H_
|
||||
#define MSL_MATH_H_
|
||||
|
||||
#include "msl_c/MSL_Common/Src/float.h"
|
||||
#include "MSL_C/MSL_Common/Src/float.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "Runtime.PPCEABI.H/__va_arg.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
// TODO: move to msl_c/
|
||||
// TODO: move to MSL_C/
|
||||
extern "C" {
|
||||
void memcpy(void*, const void*, s32);
|
||||
void* memset(void* dest, int ch, u32 count);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "msl_c/math.h"
|
||||
#include "MSL_C/math.h"
|
||||
|
||||
inline bool cLib_IsZero(f32 f) {
|
||||
return fabsf(f) < 8e-11f;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define C_M3D_H_
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "msl_c/math.h"
|
||||
#include "MSL_C/math.h"
|
||||
|
||||
class cM3dGAab;
|
||||
class cM3dGCps;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "dolphin/mtx/vec.h"
|
||||
#include "global.h"
|
||||
#include "msl_c/math.h"
|
||||
#include "MSL_C/math.h"
|
||||
|
||||
struct cXyz : Vec {
|
||||
static const cXyz Zero;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef D_SAVE_D_SAVE_H
|
||||
#define D_SAVE_D_SAVE_H
|
||||
|
||||
#include "msl_c/MSL_Common/Src/printf.h"
|
||||
#include "msl_c/MSL_Common/Src/string.h"
|
||||
#include "MSL_C/MSL_Common/Src/printf.h"
|
||||
#include "MSL_C/MSL_Common/Src/string.h"
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "dolphin/os/OS.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#ifndef INIT_H
|
||||
#define INIT_H
|
||||
|
||||
#include "msl_c/MSL_Common/Src/string.h"
|
||||
#include "MSL_C/MSL_Common/Src/string.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* INIT_H */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef M_DO_M_DO_PRINTF_H
|
||||
#define M_DO_M_DO_PRINTF_H
|
||||
|
||||
#include "msl_c/MSL_Common/Src/char_io.h"
|
||||
#include "msl_c/MSL_Common/Src/printf.h"
|
||||
#include "MSL_C/MSL_Common/Src/char_io.h"
|
||||
#include "MSL_C/MSL_Common/Src/printf.h"
|
||||
#include "Runtime.PPCEABI.H/__va_arg.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "m_Do/m_Do_main.h"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_FILE_POS_H
|
||||
#define MSL_COMMON_SRC_FILE_POS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_FILE_POS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_ABORT_EXIT_H
|
||||
#define MSL_COMMON_SRC_ABORT_EXIT_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_ABORT_EXIT_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_ALLOC_H
|
||||
#define MSL_COMMON_SRC_ALLOC_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_ALLOC_H */
|
||||
@@ -1,40 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_ANSI_FILES_H
|
||||
#define MSL_COMMON_SRC_ANSI_FILES_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct FILE {
|
||||
/* 0x00 */ u32 handle;
|
||||
/* 0x04 */ u32 file_mode;
|
||||
/* 0x08 */ u32 file_state;
|
||||
/* 0x0C */ u8 flag;
|
||||
/* 0x0D */ char char_buffer;
|
||||
/* 0x0E */ char char_buffer_2;
|
||||
/* 0x0F */ char ungetc_buffer[2];
|
||||
/* 0x12 */ u16 ungetc_wide_buffer[2];
|
||||
/* 0x18 */ u32 position;
|
||||
/* 0x1C */ u8* buffer;
|
||||
/* 0x20 */ u32 buffer_size;
|
||||
/* 0x24 */ u8* buffer_ptr;
|
||||
/* 0x28 */ u32 buffer_length;
|
||||
/* 0x2C */ u32 buffer_alignment;
|
||||
/* 0x30 */ u32 buffer_length2;
|
||||
/* 0x34 */ u32 buffer_position;
|
||||
/* 0x38 */ void* position_fn;
|
||||
/* 0x3C */ void* read_fn;
|
||||
/* 0x40 */ void* write_fn;
|
||||
/* 0x44 */ void* close_fn;
|
||||
/* 0x48 */ void* unknown;
|
||||
/* 0x4C */ struct FILE* next_file;
|
||||
};
|
||||
|
||||
struct files {
|
||||
FILE stdin;
|
||||
FILE stdout;
|
||||
FILE stderr;
|
||||
FILE empty;
|
||||
};
|
||||
|
||||
extern files __files;
|
||||
|
||||
#endif /* MSL_COMMON_SRC_ANSI_FILES_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_ARITH_H
|
||||
#define MSL_COMMON_SRC_ARITH_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_ARITH_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_BUFFER_IO_H
|
||||
#define MSL_COMMON_SRC_BUFFER_IO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_BUFFER_IO_H */
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_CHAR_IO_H
|
||||
#define MSL_COMMON_SRC_CHAR_IO_H
|
||||
|
||||
#include "msl_c/MSL_Common/Src/ansi_files.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" int fputs(const char*, FILE*);
|
||||
|
||||
#endif /* MSL_COMMON_SRC_CHAR_IO_H */
|
||||
@@ -1,10 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_CTYPE_H
|
||||
#define MSL_COMMON_SRC_CTYPE_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" {
|
||||
int tolower(int);
|
||||
};
|
||||
|
||||
#endif /* MSL_COMMON_SRC_CTYPE_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_DIRECT_IO_H
|
||||
#define MSL_COMMON_SRC_DIRECT_IO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_DIRECT_IO_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_ERRNO_H
|
||||
#define MSL_COMMON_SRC_ERRNO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_ERRNO_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_EXTRAS_H
|
||||
#define MSL_COMMON_SRC_EXTRAS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_EXTRAS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_FILE_IO_H
|
||||
#define MSL_COMMON_SRC_FILE_IO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_FILE_IO_H */
|
||||
@@ -1,48 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_FLOAT_H
|
||||
#define MSL_COMMON_SRC_FLOAT_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#define FP_SNAN 0
|
||||
#define FP_QNAN 1
|
||||
#define FP_INFINITE 2
|
||||
#define FP_ZERO 3
|
||||
#define FP_NORMAL 4
|
||||
#define FP_SUBNORMAL 5
|
||||
|
||||
#define FP_NAN FP_QNAN
|
||||
|
||||
#define fpclassify(x) ((sizeof(x) == sizeof(float)) ? __fpclassifyf(x) : __fpclassifyd(x))
|
||||
#define signbit(x) ((sizeof(x) == sizeof(float)) ? __signbitf(x) : __signbitd(x))
|
||||
|
||||
#define __signbitf(x) ((*(u8*)&(x)) & 0x80)
|
||||
|
||||
// TODO: OK?
|
||||
#define __signbitd(x) ((*(u8*)&(x)) & 0x80)
|
||||
|
||||
inline int __fpclassifyf(float __value) {
|
||||
u32 integer = *(u32*)&__value;
|
||||
|
||||
switch (integer & 0x7f800000) {
|
||||
case 0x7f800000:
|
||||
if ((integer & 0x7fffff) != 0) {
|
||||
return FP_QNAN;
|
||||
}
|
||||
return FP_INFINITE;
|
||||
|
||||
case 0:
|
||||
if ((integer & 0x7fffff) != 0) {
|
||||
return FP_SUBNORMAL;
|
||||
}
|
||||
return FP_ZERO;
|
||||
}
|
||||
|
||||
return FP_NORMAL;
|
||||
}
|
||||
|
||||
inline int __fpclassifyd(double __value) {
|
||||
// TODO:
|
||||
return FP_INFINITE;
|
||||
}
|
||||
|
||||
#endif /* MSL_COMMON_SRC_FLOAT_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_MBSTRING_H
|
||||
#define MSL_COMMON_SRC_MBSTRING_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_MBSTRING_H */
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_MEM_H
|
||||
#define MSL_COMMON_SRC_MEM_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" int memcmp(const void*, const void*, size_t);
|
||||
|
||||
#endif /* MSL_COMMON_SRC_MEM_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_MEM_FUNCS_H
|
||||
#define MSL_COMMON_SRC_MEM_FUNCS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_MEM_FUNCS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_MISC_IO_H
|
||||
#define MSL_COMMON_SRC_MISC_IO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_MISC_IO_H */
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_PRINTF_H
|
||||
#define MSL_COMMON_SRC_PRINTF_H
|
||||
|
||||
#include "Runtime.PPCEABI.H/__va_arg.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" size_t sprintf(const char*, const char*, ...);
|
||||
extern "C" size_t snprintf(const char*, size_t, const char*, ...);
|
||||
extern "C" size_t vsnprintf(char*, size_t, const char*, va_list);
|
||||
extern "C" size_t vprintf(const char*, va_list);
|
||||
extern "C" size_t printf(const char*, ...);
|
||||
|
||||
#endif /* MSL_COMMON_SRC_PRINTF_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_SCANF_H
|
||||
#define MSL_COMMON_SRC_SCANF_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_SCANF_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_SIGNAL_H
|
||||
#define MSL_COMMON_SRC_SIGNAL_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_SIGNAL_H */
|
||||
@@ -1,21 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_STRING_H
|
||||
#define MSL_COMMON_SRC_STRING_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" {
|
||||
void* memcpy(void*, const void*, s32);
|
||||
void* memset(void*, int, u32);
|
||||
char* strrchr(const char*, int);
|
||||
char* strchr(const char*, int);
|
||||
int strncmp(const char*, const char*, u32);
|
||||
int strcmp(const char*, const char*);
|
||||
char* strcat(char*, const char*);
|
||||
char* strncpy(char*, const char*, u32);
|
||||
char* strcpy(char*, const char*);
|
||||
u32 strlen(const char*);
|
||||
|
||||
int stricmp(const char*, const char*);
|
||||
};
|
||||
|
||||
#endif /* MSL_COMMON_SRC_STRING_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_STRTOUL_H
|
||||
#define MSL_COMMON_SRC_STRTOUL_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_STRTOUL_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_SRC_WCHAR_IO_H
|
||||
#define MSL_COMMON_SRC_WCHAR_IO_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_SRC_WCHAR_IO_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MSL_COMMON_EMBEDDED_SRC_ANSI_FP_H
|
||||
#define MSL_COMMON_EMBEDDED_SRC_ANSI_FP_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MSL_COMMON_EMBEDDED_SRC_ANSI_FP_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_ACOS_H
|
||||
#define MATH_DOUBLE_PRECISION_E_ACOS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_ACOS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_ASIN_H
|
||||
#define MATH_DOUBLE_PRECISION_E_ASIN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_ASIN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_ATAN2_H
|
||||
#define MATH_DOUBLE_PRECISION_E_ATAN2_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_ATAN2_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_EXP_H
|
||||
#define MATH_DOUBLE_PRECISION_E_EXP_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_EXP_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_FMOD_H
|
||||
#define MATH_DOUBLE_PRECISION_E_FMOD_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_FMOD_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_POW_H
|
||||
#define MATH_DOUBLE_PRECISION_E_POW_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_POW_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_REM_PIO2_H
|
||||
#define MATH_DOUBLE_PRECISION_E_REM_PIO2_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_REM_PIO2_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_E_SQRT_H
|
||||
#define MATH_DOUBLE_PRECISION_E_SQRT_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_E_SQRT_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_K_COS_H
|
||||
#define MATH_DOUBLE_PRECISION_K_COS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_K_COS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_K_REM_PIO2_H
|
||||
#define MATH_DOUBLE_PRECISION_K_REM_PIO2_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_K_REM_PIO2_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_K_SIN_H
|
||||
#define MATH_DOUBLE_PRECISION_K_SIN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_K_SIN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_K_TAN_H
|
||||
#define MATH_DOUBLE_PRECISION_K_TAN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_K_TAN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_ATAN_H
|
||||
#define MATH_DOUBLE_PRECISION_S_ATAN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_ATAN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_CEIL_H
|
||||
#define MATH_DOUBLE_PRECISION_S_CEIL_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_CEIL_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_COPYSIGN_H
|
||||
#define MATH_DOUBLE_PRECISION_S_COPYSIGN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_COPYSIGN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_COS_H
|
||||
#define MATH_DOUBLE_PRECISION_S_COS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_COS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_FLOOR_H
|
||||
#define MATH_DOUBLE_PRECISION_S_FLOOR_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_FLOOR_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_FREXP_H
|
||||
#define MATH_DOUBLE_PRECISION_S_FREXP_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_FREXP_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_LDEXP_H
|
||||
#define MATH_DOUBLE_PRECISION_S_LDEXP_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_LDEXP_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_MODF_H
|
||||
#define MATH_DOUBLE_PRECISION_S_MODF_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_MODF_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_SIN_H
|
||||
#define MATH_DOUBLE_PRECISION_S_SIN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_SIN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_S_TAN_H
|
||||
#define MATH_DOUBLE_PRECISION_S_TAN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_S_TAN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_ACOS_H
|
||||
#define MATH_DOUBLE_PRECISION_W_ACOS_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_ACOS_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_ASIN_H
|
||||
#define MATH_DOUBLE_PRECISION_W_ASIN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_ASIN_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_ATAN2_H
|
||||
#define MATH_DOUBLE_PRECISION_W_ATAN2_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_ATAN2_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_EXP_H
|
||||
#define MATH_DOUBLE_PRECISION_W_EXP_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_EXP_H */
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_FMOD_H
|
||||
#define MATH_DOUBLE_PRECISION_W_FMOD_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
double fmod(double, double);
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_FMOD_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_POW_H
|
||||
#define MATH_DOUBLE_PRECISION_W_POW_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_POW_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef MATH_DOUBLE_PRECISION_W_SQRT_H
|
||||
#define MATH_DOUBLE_PRECISION_W_SQRT_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* MATH_DOUBLE_PRECISION_W_SQRT_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H
|
||||
#define PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef PPC_EABI_SRC_MATH_PPC_H
|
||||
#define PPC_EABI_SRC_MATH_PPC_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* PPC_EABI_SRC_MATH_PPC_H */
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef PPC_EABI_SRC_UART_CONSOLE_IO_GCN_H
|
||||
#define PPC_EABI_SRC_UART_CONSOLE_IO_GCN_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#endif /* PPC_EABI_SRC_UART_CONSOLE_IO_GCN_H */
|
||||
@@ -1,72 +0,0 @@
|
||||
#ifndef MSL_MATH_H_
|
||||
#define MSL_MATH_H_
|
||||
|
||||
#include "msl_c/MSL_Common/Src/float.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" {
|
||||
s32 abs(s32);
|
||||
f64 acos(f64);
|
||||
f32 acosf(f32);
|
||||
f64 asin(f64);
|
||||
f64 atan(f64);
|
||||
f64 atan2(f64);
|
||||
f64 ceil(f64);
|
||||
f64 copysign(f64, f64);
|
||||
f64 cos(f64);
|
||||
f32 cosf(f32);
|
||||
f64 exp(f64);
|
||||
|
||||
extern f32 __fabsf(f32);
|
||||
inline f64 fabs(f64 f) {
|
||||
return __fabsf(f);
|
||||
}
|
||||
inline f64 fabsf2(f32 f) {
|
||||
return __fabsf(f);
|
||||
}
|
||||
inline f32 fabsf(f32 f) {
|
||||
return fabsf2(f);
|
||||
}
|
||||
|
||||
f64 floor(f64);
|
||||
f64 fmod(f64, f64);
|
||||
inline f32 fmodf(f32 f1, f32 f2) {
|
||||
return fmod(f1, f2);
|
||||
}
|
||||
|
||||
f64 frexp(f64, s32*);
|
||||
f64 ldexp(f64, s32);
|
||||
f64 modf(f64, f64*);
|
||||
f64 pow(f64, f64);
|
||||
f64 sin(f64);
|
||||
f32 sinf(f32);
|
||||
f64 sqrt(f64);
|
||||
f64 tan(f64);
|
||||
f32 tanf(f32);
|
||||
|
||||
extern f32 __float_nan[4];
|
||||
extern f32 __float_epsilon[4];
|
||||
extern f32 __float_max[4];
|
||||
|
||||
inline f64 sqrt_step(f64 tmpd, f32 mag) {
|
||||
return tmpd * 0.5 * (3.0 - mag * (tmpd * tmpd));
|
||||
}
|
||||
|
||||
inline f32 sqrtf(f32 mag) {
|
||||
if (mag > 0.0f) {
|
||||
f64 tmpd = __frsqrte(mag);
|
||||
tmpd = sqrt_step(tmpd, mag);
|
||||
tmpd = sqrt_step(tmpd, mag);
|
||||
tmpd = sqrt_step(tmpd, mag);
|
||||
return mag * tmpd;
|
||||
} else if (mag < 0.0) {
|
||||
return __float_nan[0];
|
||||
} else if (fpclassify(mag) == 1) {
|
||||
return __float_nan[0];
|
||||
} else {
|
||||
return mag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,27 +0,0 @@
|
||||
#ifndef MSL_STRING_H_
|
||||
#define MSL_STRING_H_
|
||||
|
||||
#include "Runtime.PPCEABI.H/__va_arg.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
// TODO: move to msl_c/
|
||||
extern "C" {
|
||||
void memcpy(void*, const void*, s32);
|
||||
void* memset(void* dest, int ch, u32 count);
|
||||
char* strrchr(const char* s, int c);
|
||||
char* strchr(const char* s, int c);
|
||||
int strncmp(const char* s1, const char* s2, u32 n);
|
||||
int strcmp(const char* s1, const char* s2);
|
||||
int stricmp(const char*, const char*);
|
||||
char* strcat(char* dest, const char* source);
|
||||
char* strncpy(char* dest, const char* source, u32 n);
|
||||
char* strcpy(char* dest, const char* source);
|
||||
u32 strlen(const char* s);
|
||||
int tolower(int);
|
||||
int sprintf(char*, const char*, ...);
|
||||
int printf(const char*, ...);
|
||||
int snprintf(char*, u32, const char*, ...);
|
||||
size_t vsnprintf(char* buffer, size_t buffer_size, const char* format, va_list args);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user