MSL_C fully matched / some SSystem cleanup/ obj_rgate OK (#2011)

* cleanup SSystem files

* MSL_C fully matched

* fix build

* remove asm

* reorganize MSL_C/Runtime libs into more accurate setup

* little more cleanup

* cleanup some MSL headers

* obj_rgate OK

* remove asm

* some rgate documentation
This commit is contained in:
TakaRikka
2023-12-25 07:31:05 -08:00
committed by GitHub
parent 54e5104f56
commit 8b3a582278
399 changed files with 5321 additions and 12620 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#define J2DPRINT_H
#include "JSystem/J2DGraph/J2DTextBox.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
#include "dolphin/types.h"
class JUTFont;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef J3DUD_H
#define J3DUD_H
#include "MSL_C/math.h"
#include "math.h"
#include "dolphin/types.h"
namespace J3DUD {
+1 -1
View File
@@ -2,7 +2,7 @@
#define JASGADGET_H
#include "JSystem/JUtility/JUTAssert.h"
#include "MSL_C/string.h"
#include "string.h"
template<class T>
class JASGlobalInstance {
+1 -1
View File
@@ -6,7 +6,7 @@
#include "JSystem/JAudio2/JAUBankTable.h"
#include "JSystem/JAudio2/JAUSeqDataBlockMgr.h"
#include "JSystem/JKernel/JKRDisposer.h"
#include "MSL_C/bitset.h"
#include "bitset.h"
class JAISeqData;
class JAISeqDataMgr;
+1 -1
View File
@@ -5,7 +5,7 @@
#include "JSystem/JAudio2/JASAramStream.h"
#include "JSystem/JAudio2/JASHeapCtrl.h"
#include "JSystem/JUtility/JUTAssert.h"
#include "MSL_C/bitset.h"
#include "bitset.h"
template <size_t A0>
class JAUStreamAramMgrBase_ : public JAIStreamAramMgr {
+1 -2
View File
@@ -2,8 +2,7 @@
#define JGEOMETRY_H
#include "dolphin/mtx/vec.h"
#include "MSL_C/float.h"
#include "MSL_C/math.h"
#include "math.h"
namespace JGeometry {
+1 -1
View File
@@ -2,7 +2,7 @@
#define JMATRIGONOMETRIC_H
#include "dolphin/types.h"
#include "MSL_C/utility.h"
#include "utility.h"
struct TSinCosTable {
std::pair<f32, f32> table[0x2000];
+1 -1
View File
@@ -4,7 +4,7 @@
#include "JSystem/JGadget/linklist.h"
#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JUtility/JUTFont.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
#include "dolphin/types.h"
class JUTConsole : public JKRDisposer {
+1 -1
View File
@@ -2,7 +2,7 @@
#define JUTDIRECTPRINT_H
#include "JSystem/JUtility/TColor.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
class JUTDirectPrint {
private:
+1 -1
View File
@@ -3,7 +3,7 @@
#include "JSystem/JKernel/JKRThread.h"
#include "JSystem/JUtility/JUTGamePad.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
#include "dolphin/gx/GXEnum.h"
#include "dolphin/os/OSError.h"
#include "dolphin/types.h"
+1 -1
View File
@@ -2,7 +2,7 @@
#define JUTFONT_H
#include "JSystem/JUtility/TColor.h"
#include "MSL_C/string.h"
#include "string.h"
struct ResFONT {
struct INF1 {
-18
View File
@@ -1,18 +0,0 @@
#ifndef MSL_COMMON_SRC_FILE_POS_H
#define MSL_COMMON_SRC_FILE_POS_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#ifdef __cplusplus
extern "C" {
#endif
int fseek(FILE* file, long offset, int mode);
int _fseek(FILE* file, fpos_t offset, int mode);
long ftell(FILE* file);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_FILE_POS_H */
-17
View File
@@ -1,17 +0,0 @@
#ifndef MSL_COMMON_SRC_ABORT_EXIT_H
#define MSL_COMMON_SRC_ABORT_EXIT_H
#ifdef __cplusplus
extern "C" {
#endif
void exit(int status);
void abort(void);
extern void (*__stdio_exit)(void);
#ifdef __cplusplus
};
#endif
#endif /* MSL_COMMON_SRC_ABORT_EXIT_H */
-17
View File
@@ -1,17 +0,0 @@
#ifndef MSL_COMMON_SRC_ALLOC_H
#define MSL_COMMON_SRC_ALLOC_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#ifdef __cplusplus
extern "C" {
#endif
void free(FILE* file);
void __pool_free(int **param_1, unsigned int **param_2);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_ALLOC_H */
-129
View File
@@ -1,129 +0,0 @@
#ifndef MSL_COMMON_SRC_ANSI_FILES_H
#define MSL_COMMON_SRC_ANSI_FILES_H
#include "MSL_C/MSL_Common/Src/stddef.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
typedef unsigned long __file_handle;
typedef unsigned long fpos_t;
#ifndef __cplusplus
typedef unsigned short wchar_t;
#endif
#define set_error(file) \
do { \
(file)->file_state.error = 1; \
(file)->buffer_length = 0; \
} while (0)
enum __file_kinds {
__closed_file,
__disk_file,
__console_file,
__unavailable_file,
};
enum __file_orientation {
/* 0x0 */ UNORIENTED,
/* 0x1 */ CHAR_ORIENTED,
/* 0x2 */ WIDE_ORIENTED,
};
typedef struct _file_modes {
unsigned int open_mode : 2;
unsigned int io_mode : 3;
unsigned int buffer_mode : 2;
unsigned int file_kind : 3;
unsigned int file_orientation : 2;
unsigned int binary_io : 1;
} file_modes;
enum __io_modes {
__read = 1,
__write = 2,
__read_write = 3,
__append = 4,
};
enum __io_states {
__neutral,
__writing,
__reading,
__rereading,
};
enum __io_results {
__no_io_error,
__io_error,
__io_EOF,
};
typedef struct _file_states {
unsigned int io_state : 3;
unsigned int free_buffer : 1;
unsigned char eof;
unsigned char error;
} file_states;
typedef void (*__idle_proc)(void);
typedef int (*__pos_proc)(__file_handle file, fpos_t* position, int mode, __idle_proc idle_proc);
typedef int (*__io_proc)(__file_handle file, unsigned char* buff, size_t* count,
__idle_proc idle_proc);
typedef int (*__close_proc)(__file_handle file);
typedef struct _FILE {
/* 0x00 */ __file_handle handle;
/* 0x04 */ file_modes file_mode;
/* 0x08 */ file_states file_state;
/* 0x0C */ unsigned char is_dynamically_allocated;
/* 0x0D */ char char_buffer;
/* 0x0E */ char char_buffer_overflow;
/* 0x0F */ char ungetc_buffer[2];
/* 0x12 */ wchar_t ungetc_wide_buffer[2];
/* 0x18 */ unsigned long position;
/* 0x1C */ unsigned char* buffer;
/* 0x20 */ unsigned long buffer_size;
/* 0x24 */ unsigned char* buffer_ptr;
/* 0x28 */ unsigned long buffer_length;
/* 0x2C */ unsigned long buffer_alignment;
/* 0x30 */ unsigned long save_buffer_length;
/* 0x34 */ unsigned long buffer_position;
/* 0x38 */ __pos_proc position_fn;
/* 0x3C */ __io_proc read_fn;
/* 0x40 */ __io_proc write_fn;
/* 0x44 */ __close_proc close_fn;
/* 0x48 */ __idle_proc idle_fn;
/* 0x4C */ struct _FILE* next_file;
} FILE;
typedef struct _files {
FILE _stdin;
FILE _stdout;
FILE _stderr;
FILE empty;
} files;
#define _IONBF 0
#define _IOLBF 1
#define _IOFBF 2
extern files __files;
extern int __close_console(__file_handle file);
extern int __write_console(__file_handle file, unsigned char* buf, size_t* count, __idle_proc idle_fn);
extern int __read_console(__file_handle file, unsigned char* buf, size_t* count, __idle_proc idle_fn);
unsigned int __flush_all(void);
void __close_all(void);
#ifdef __cplusplus
};
#endif
#endif /* MSL_COMMON_SRC_ANSI_FILES_H */
-19
View File
@@ -1,19 +0,0 @@
#ifndef MSL_COMMON_SRC_ARITH_H
#define MSL_COMMON_SRC_ARITH_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int quot; /* quotient */
int rem; /* remainder */
} div_t;
div_t div(int numerator, int denominator);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_ARITH_H */
-11
View File
@@ -1,11 +0,0 @@
#ifndef MSL_COMMON_SRC_BUFFER_IO_H
#define MSL_COMMON_SRC_BUFFER_IO_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
enum { __align_buffer, __dont_align_buffer };
void __prep_buffer(FILE* file);
int __flush_buffer(FILE* file, size_t* bytes_flushed);
#endif /* MSL_COMMON_SRC_BUFFER_IO_H */
-17
View File
@@ -1,17 +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"
#ifdef __cplusplus
extern "C" {
#endif
int fputs(const char* str, FILE* stream);
int __put_char(int c, FILE* stream);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_CHAR_IO_H */
-37
View File
@@ -1,37 +0,0 @@
#ifndef MSL_COMMON_SRC_CTYPE_H
#define MSL_COMMON_SRC_CTYPE_H
#ifdef __cplusplus
extern "C" {
#endif
#define EOF -1L
extern unsigned char __ctype_map[];
extern unsigned char __lower_map[];
extern unsigned char __upper_map[];
#define __control_char 0x01
#define __motion_char 0x02
#define __space_char 0x04
#define __punctuation 0x08
#define __digit 0x10
#define __hex_digit 0x20
#define __lower_case 0x40
#define __upper_case 0x80
#define __letter (__lower_case | __upper_case)
#define __alphanumeric (__letter | __digit)
#define __graphic (__alphanumeric | __punctuation)
#define __printable (__graphic | __space_char)
#define __whitespace (__motion_char | __space_char)
#define __control (__motion_char | __control_char)
#define __zero_fill(c) ((int)(unsigned char)(c))
int tolower(int);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_CTYPE_H */
-17
View File
@@ -1,17 +0,0 @@
#ifndef MSL_COMMON_SRC_DIRECT_IO_H
#define MSL_COMMON_SRC_DIRECT_IO_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#ifdef __cplusplus
extern "C" {
#endif
size_t __fwrite(const void* buffer, size_t size, size_t count, FILE* stream);
size_t fwrite(const void* buffer, size_t size, size_t count, FILE* stream);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_DIRECT_IO_H */
-15
View File
@@ -1,15 +0,0 @@
#ifndef MSL_COMMON_SRC_EXTRAS_H
#define MSL_COMMON_SRC_EXTRAS_H
#ifdef __cplusplus
extern "C" {
#endif
int strnicmp(const char* str1, const char* str2, int n);
int stricmp(const char* str1, const char* str2);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_EXTRAS_H */
-18
View File
@@ -1,18 +0,0 @@
#ifndef MSL_COMMON_SRC_FILE_IO_H
#define MSL_COMMON_SRC_FILE_IO_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#ifdef __cplusplus
extern "C" {
#endif
int __msl_strnicmp(const char* str1, const char* str2, size_t n);
int fflush(FILE* file);
int fclose(FILE* file);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_FILE_IO_H */
-69
View File
@@ -1,69 +0,0 @@
#ifndef MSL_COMMON_SRC_FLOAT_H
#define MSL_COMMON_SRC_FLOAT_H
#include "fdlibm.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 isfinite(x) ((fpclassify(x) > 2))
#define __signbitf(x) ((*(unsigned char*)&(x)) & 0x80)
// TODO: OK?
#define __signbitd(x) ((*(unsigned char*)&(x)) & 0x80)
extern unsigned long __float_nan[];
extern unsigned long __float_huge[];
extern unsigned long __float_max[];
extern unsigned long __float_epsilon[];
inline int __fpclassifyf(float __value) {
unsigned long integer = *(unsigned long*)&__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) {
switch (__HI(__value) & 0x7ff00000) {
case 0x7ff00000: {
if ((__HI(__value) & 0x000fffff) || (__LO(__value) & 0xffffffff))
return FP_QNAN;
else
return FP_INFINITE;
break;
}
case 0: {
if ((__HI(__value) & 0x000fffff) || (__LO(__value) & 0xffffffff))
return FP_SUBNORMAL;
else
return FP_ZERO;
break;
}
}
return FP_NORMAL;
}
#endif /* MSL_COMMON_SRC_FLOAT_H */
-70
View File
@@ -1,70 +0,0 @@
#ifndef _STD_LIMITS_H
#define _STD_LIMITS_H
namespace std {
template <typename T>
class numeric_limits {
public:
inline static T min();
inline static T max();
};
template <>
class numeric_limits<char> {
public:
inline static char min() { return -0x80; }
inline static char max() { return 0x7F; }
};
template <>
class numeric_limits<short> {
public:
inline static short min() { return -0x8000; }
inline static short max() { return 0x7FFF; }
};
template <>
class numeric_limits<int> {
public:
inline static int min() { return -0x80000000; }
inline static int max() { return 0x7FFFFFFF; }
};
template <>
class numeric_limits<long> {
public:
inline static long min() { return -0x80000000; }
inline static long max() { return 0x7FFFFFFF; }
};
template <>
class numeric_limits<unsigned char> {
public:
inline static unsigned char min() { return 0x0; }
inline static unsigned char max() { return 0xFF; }
};
template <>
class numeric_limits<unsigned short> {
public:
inline static unsigned short min() { return 0x0; }
inline static unsigned short max() { return 0xFFFF; }
};
template <>
class numeric_limits<unsigned int> {
public:
inline static unsigned int min() { return 0x0; }
inline static unsigned int max() { return 0xFFFFFFFF; }
};
template <>
class numeric_limits<unsigned long> {
public:
inline static unsigned long min() { return 0x0; }
inline static unsigned long max() { return 0xFFFFFFFF; }
};
} // namespace std
#endif
-16
View File
@@ -1,16 +0,0 @@
#ifndef MSL_COMMON_SRC_MBSTRING_H
#define MSL_COMMON_SRC_MBSTRING_H
#include "MSL_C/MSL_Common/Src/wchar_io.h"
#ifdef __cplusplus
extern "C" {
#endif
size_t wcstombs(char* dst, const wchar_t* src, size_t n);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_MBSTRING_H */
-19
View File
@@ -1,19 +0,0 @@
#ifndef MSL_COMMON_SRC_MEM_H
#define MSL_COMMON_SRC_MEM_H
#include "MSL_C/MSL_Common/Src/stddef.h"
#ifdef __cplusplus
extern "C" {
#endif
int memcmp(const void* lhs, const void* rhs, size_t count);
void* __memrchr(const void* ptr, int ch, size_t count);
void* memchr(const void* ptr, int ch, size_t count);
void* memmove(void* dst, const void* src, size_t n);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_MEM_H */
-19
View File
@@ -1,19 +0,0 @@
#ifndef MSL_COMMON_SRC_MEM_FUNCS_H
#define MSL_COMMON_SRC_MEM_FUNCS_H
#include "MSL_C/MSL_Common/Src/stddef.h"
#ifdef __cplusplus
extern "C" {
#endif
void __copy_longs_rev_unaligned(void* dst, const void* src, size_t n);
void __copy_longs_unaligned(void* dst, const void* src, size_t n);
void __copy_longs_rev_aligned(void* dst, const void* src, size_t n);
void __copy_longs_aligned(void* dst, const void* src, size_t n);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_MEM_FUNCS_H */
-14
View File
@@ -1,14 +0,0 @@
#ifndef MSL_COMMON_SRC_MISC_IO_H
#define MSL_COMMON_SRC_MISC_IO_H
#ifdef __cplusplus
extern "C" {
#endif
void __stdio_atexit(void);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_MISC_IO_H */
-22
View File
@@ -1,22 +0,0 @@
#ifndef MSL_COMMON_SRC_PRINTF_H
#define MSL_COMMON_SRC_PRINTF_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#include "Runtime.PPCEABI.H/__va_arg.h"
#ifdef __cplusplus
extern "C" {
#endif
int fprintf(FILE* stream, const char* format, ...);
int printf(const char* format, ...);
int sprintf(const char* str, const char* format, ...);
int snprintf(const char* str, size_t n, const char* format, ...);
int vsnprintf(char* str, size_t n, const char* format, va_list arg);
int vprintf(const char* format, va_list arg);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_PRINTF_H */
-14
View File
@@ -1,14 +0,0 @@
#ifndef MSL_COMMON_SRC_SCANF_H
#define MSL_COMMON_SRC_SCANF_H
#ifdef __cplusplus
extern "C" {
#endif
int __StringRead(char* str, int ch, int behavior);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_SCANF_H */
-14
View File
@@ -1,14 +0,0 @@
#ifndef MSL_COMMON_SRC_SIGNAL_H
#define MSL_COMMON_SRC_SIGNAL_H
#ifdef __cplusplus
extern "C" {
#endif
int raise(int sig);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_SIGNAL_H */
-24
View File
@@ -1,24 +0,0 @@
#ifndef _STDDEF_H_
#define _STDDEF_H_
#ifdef __cplusplus
extern "C" {
#endif
#if defined __INTELLISENSE__
typedef unsigned int size_t;
typedef int ptrdiff_t;
#else
typedef unsigned long size_t;
typedef long ptrdiff_t;
#endif
#ifndef NULL
#define NULL (0)
#endif
#ifdef __cplusplus
}
#endif
#endif
-26
View File
@@ -1,26 +0,0 @@
#ifndef MSL_COMMON_SRC_STRING_H
#define MSL_COMMON_SRC_STRING_H
#include "MSL_C/MSL_Common/Src/stddef.h"
#ifdef __cplusplus
extern "C" {
#endif
void* memcpy(void* dst, const void* src, size_t n);
void* memset(void* dst, int val, size_t n);
char* strrchr(const char* str, int c);
char* strchr(const char* str, int c);
int strncmp(const char* str1, const char* str2, size_t n);
int strcmp(const char* str1, const char* str2);
char* strcat(char* dst, const char* src);
char* strncpy(char* dst, const char* src, size_t n);
char* strcpy(char* dst, const char* src);
size_t strlen(const char* str);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_STRING_H */
-16
View File
@@ -1,16 +0,0 @@
#ifndef MSL_COMMON_SRC_STRTOUL_H
#define MSL_COMMON_SRC_STRTOUL_H
#ifdef __cplusplus
extern "C" {
#endif
long strtol(const char* str, char** endptr, int base);
unsigned long strtoul(const char* str, char** endptr, int base);
unsigned long __strtoul(const char* str, char** endptr, int base);
#ifdef __cplusplus
}
#endif
#endif /* MSL_COMMON_SRC_STRTOUL_H */
-12
View File
@@ -1,12 +0,0 @@
#ifndef MSL_COMMON_SRC_WCHAR_IO_H
#define MSL_COMMON_SRC_WCHAR_IO_H
#include "MSL_C/MSL_Common/Src/ansi_files.h"
#ifndef __cplusplus
typedef unsigned short wchar_t;
#endif
int fwide(FILE* file, int mode);
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
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
#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
#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
#endif /* PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H */
-6
View File
@@ -1,6 +0,0 @@
#ifndef PPC_EABI_SRC_MATH_PPC_H
#define PPC_EABI_SRC_MATH_PPC_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 "MSL_C/MSL_Common/Src/ansi_files.h"
#endif /* PPC_EABI_SRC_UART_CONSOLE_IO_GCN_H */
-48
View File
@@ -1,48 +0,0 @@
#ifndef MSL_ALGORITHM_H_
#define MSL_ALGORITHM_H_
namespace std {
template <class ForwardIterator, class T>
ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, const T& val);
template <class ForwardIterator, class T>
ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, const T& val);
template<class InputIt, class UnaryPredicate>
InputIt find_if(InputIt first, InputIt last, UnaryPredicate p);
/*
template<class OutputIt, class Size, int A2>
struct __fill_n {
OutputIt fill_n(OutputIt first, Size count, const unsigned long& value);
};
template<>
unsigned long* __fill_n<unsigned long, long, 0>::fill_n(unsigned long* first, long count, const unsigned long& value) {
for (; count > 0; count--) {
*first++ = value;
}
return first;
}
template<class OutputIt, class Size, class T>
OutputIt fill_n(OutputIt first, Size count, const T& value) {
return __fill_n::fill_n(first, count, value);
}
template<class ForwardIt, class T>
void __fill(ForwardIt first, ForwardIt last, const T& value, std::random_access_iterator_tag param_3) {
fill_n(first, last - first, value);
}
*/
template<class ForwardIt, class T>
void fill(ForwardIt first, ForwardIt last, const T& value) {
for (; first != last; ++first){
*first = value;
}
}
} // namespace std
#endif
-81
View File
@@ -1,81 +0,0 @@
#ifndef MSL_BITSET_H_
#define MSL_BITSET_H_
#include "MSL_C/algorithm.h"
#include "MSL_C/stdio.h"
#include "MSL_C/stdlib.h"
namespace std {
// TODO: where does this go?
inline void __msl_error(const char* param_0) {
fprintf(stderr, param_0);
abort();
}
template<size_t N> class __bitset_base {
public:
__bitset_base();
bool test(size_t pos) const;
bool any() const;
void set(size_t pos, bool val);
void reset(size_t pos);
private:
size_t data[N];
};
template<size_t N> __bitset_base<N>::__bitset_base() {
std::fill(data, data + N, 0);
}
template<size_t N> bool __bitset_base<N>::test(size_t pos) const {
size_t i = pos / (sizeof(size_t) * 8);
size_t mask = 1 << (pos % (sizeof(size_t) * 8));
return data[i] & mask;
}
template<size_t N> void __bitset_base<N>::set(size_t pos, bool val) {
size_t i = pos / (sizeof(size_t) * 8);
size_t mask = 1 << (pos % (sizeof(size_t) * 8));
if (val) {
data[i] |= mask;
} else {
data[i] &= ~mask;
}
}
template<size_t N> void __bitset_base<N>::reset(size_t pos) {
size_t i = pos / (sizeof(size_t) * 8);
size_t mask = 1 << (pos % (sizeof(size_t) * 8));
data[i] &= ~mask;
}
template<size_t N> class bitset : private __bitset_base<(N - 1) / (sizeof(size_t) * 8) + 1> {
public:
typedef __bitset_base<(N - 1) / (sizeof(size_t) * 8) + 1> base;
bitset() {};
void set(size_t pos, bool val) {
if (pos >= N) {
__msl_error("index out of range of bitset::set");
}
base::set(pos, val);
}
void reset(size_t pos) {
if (pos >= N) {
__msl_error("index out of range of bitset::reset");
}
base::reset(pos);
}
bool test(size_t pos) const {
if (pos >= N) {
__msl_error("index out of range of bitset::test");
}
return base::test(pos);
}
bool any() const;
};
} // namespace std
#endif
-10
View File
@@ -1,10 +0,0 @@
#ifndef MSL_FLOAT_H_
#define MSL_FLOAT_H_
#include "MSL_C/MSL_Common/Src/float.h"
#define FLT_MAX (*(float*) __float_max)
#define FLT_EPSILON (*(float*) __float_epsilon)
#endif
-8
View File
@@ -1,8 +0,0 @@
#ifndef MSL_FUNCTIONAL_H_
#define MSL_FUNCTIONAL_H_
namespace std {
template <class T> struct less {};
} // namespace std
#endif
-89
View File
@@ -1,89 +0,0 @@
#ifndef MSL_MATH_H_
#define MSL_MATH_H_
#include "MSL_C/MSL_Common/Src/float.h"
#define NAN (*(float*) __float_nan)
#define HUGE_VALF (*(float*) __float_huge)
#define M_PI 3.14159265358979323846f
#define M_SQRT3 1.73205f
#define DEG_TO_RAD(degrees) (degrees * (M_PI / 180.0f))
#define RAD_TO_DEG(radians) (radians / (180.0f / M_PI))
#ifdef __cplusplus
extern "C" {
#endif
int abs(int);
double acos(double);
float acosf(float);
double asin(double);
double atan(double);
double atan2(double, double);
double ceil(double);
double copysign(double, double);
double cos(double);
float cosf(float);
double exp(double);
extern float __fabsf(float);
inline double fabs(double f) {
return __fabs(f);
}
inline double fabsf2(float f) {
return __fabsf(f);
}
inline float fabsf(float f) {
return fabsf2(f);
}
double floor(double);
double fmod(double, double);
inline float fmodf(float f1, float f2) {
return fmod(f1, f2);
}
double frexp(double, int*);
double ldexp(double, int);
double modf(double, double*);
double pow(double, double);
double sin(double);
float sinf(float);
double sqrt(double);
double tan(double);
float tanf(float);
inline double sqrt_step(double tmpd, float mag) {
return tmpd * 0.5 * (3.0 - mag * (tmpd * tmpd));
}
inline float sqrtf(float mag) {
if (mag > 0.0f) {
double 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 NAN;
} else if (fpclassify(mag) == 1) {
return NAN;
} else {
return mag;
}
}
inline float atan2f(float y, float x) {
return (float)atan2(y, x);
}
inline float i_sinf(float x) { return sin(x); }
inline float i_cosf(float x) { return cos(x); }
#ifdef __cplusplus
};
#endif
#endif
-12
View File
@@ -1,12 +0,0 @@
#ifndef MSL_STDIO_H_
#define MSL_STDIO_H_
#include "MSL_C/MSL_Common/Src/char_io.h"
#include "MSL_C/MSL_Common/Src/file_io.h"
#include "MSL_C/MSL_Common/Src/printf.h"
#define stdin (&__files._stdin)
#define stdout (&__files._stdout)
#define stderr (&__files._stderr)
#endif
-9
View File
@@ -1,9 +0,0 @@
#ifndef MSL_STDLIB_H_
#define MSL_STDLIB_H_
#include "MSL_C/MSL_Common/Src/abort_exit.h"
#include "MSL_C/MSL_Common/Src/arith.h"
#include "MSL_C/MSL_Common/Src/mbstring.h"
#include "MSL_C/MSL_Common/Src/strtoul.h"
#endif
-8
View File
@@ -1,8 +0,0 @@
#ifndef MSL_STRING_H_
#define MSL_STRING_H_
#include "MSL_C/MSL_Common/Src/extras.h"
#include "MSL_C/MSL_Common/Src/mem.h"
#include "MSL_C/MSL_Common/Src/string.h"
#endif
-17
View File
@@ -1,17 +0,0 @@
#ifndef MSL_UTILITY_H_
#define MSL_UTILITY_H_
namespace std {
template <class T1, class T2>
struct pair {
T1 first;
T2 second;
pair() {
first = T1();
second = T2();
}
};
} // namespace std
#endif
-6
View File
@@ -1,6 +0,0 @@
#ifndef CPLUSLIBPPC_H
#define CPLUSLIBPPC_H
#include "dolphin/types.h"
#endif /* CPLUSLIBPPC_H */
@@ -1,5 +0,0 @@
#ifndef GCN_MEM_ALLOC_H
#define GCN_MEM_ALLOC_H
#endif /* GCN_MEM_ALLOC_H */
@@ -1,5 +0,0 @@
#ifndef GECKO_EXCEPTIONPPC_H
#define GECKO_EXCEPTIONPPC_H
#endif /* GECKO_EXCEPTIONPPC_H */
-6
View File
@@ -1,6 +0,0 @@
#ifndef NMWEXCEPTION_H
#define NMWEXCEPTION_H
#include "dolphin/types.h"
#endif /* NMWEXCEPTION_H */
@@ -1,6 +0,0 @@
#ifndef __INIT_CPP_EXCEPTIONS_H
#define __INIT_CPP_EXCEPTIONS_H
#include "dolphin/types.h"
#endif /* __INIT_CPP_EXCEPTIONS_H */
-40
View File
@@ -1,40 +0,0 @@
#ifndef __VA_ARG_H
#define __VA_ARG_H
#include "dolphin/types.h"
typedef struct __va_list_struct {
char gpr;
char fpr;
char reserved[2];
char* input_arg_area;
char* reg_save_area;
} _va_list_struct;
typedef _va_list_struct __va_list[1];
#ifdef __cplusplus
extern "C" void* __va_arg(_va_list_struct*, int);
#else
void* __va_arg(_va_list_struct*, int);
#endif
#if IN_VSCODE_EDITOR
#define __builtin_va_info(...)
#define _var_arg_typeof(...)
#endif
// from defined-string in mwcceppc.exe:
// __builtin_va_info: initialize the __va_list_struct
// _var_arg_typeof: convert type to integer for __va_arg
#define __va_start(list, fmt) __builtin_va_info(&list)
#define __va_arg(list, type) (*((type*)__va_arg(list, _var_arg_typeof(type))))
#define va_start __va_start
#define va_arg __va_arg
#define va_end __va_end
#define va_list __va_list
#define __va_end(list) ((void)0)
#define __va_copy(a, b) (*(a) = *(b))
#endif /* __VA_ARG_H */
@@ -1,5 +0,0 @@
#ifndef GLOBAL_DESTRUCTOR_CHAIN_H
#define GLOBAL_DESTRUCTOR_CHAIN_H
#endif /* GLOBAL_DESTRUCTOR_CHAIN_H */
-13
View File
@@ -1,13 +0,0 @@
#ifndef PTMF_H
#define PTMF_H
typedef struct __ptmf {
long this_delta; // self-explanatory
long v_offset; // vtable offset
union {
void* f_addr; // function address
long ve_offset; // virtual function entry offset (of vtable)
} f_data;
} __ptmf;
#endif /* PTMF_H */
-6
View File
@@ -1,6 +0,0 @@
#ifndef RUNTIME_H
#define RUNTIME_H
#include "dolphin/types.h"
#endif /* RUNTIME_H */
+10 -2
View File
@@ -1,9 +1,17 @@
#ifndef C_API_H
#define C_API_H
typedef void (*cAPIGph_Mthd)(void);
extern cAPIGph_Mthd g_cAPI_Interface[6];
struct cAPI_Interface {
/* 0x00 */ cAPIGph_Mthd createMtd;
/* 0x04 */ cAPIGph_Mthd beforeOfDrawMtd;
/* 0x08 */ cAPIGph_Mthd afterOfDrawMtd;
/* 0x0C */ cAPIGph_Mthd painterMtd;
/* 0x10 */ cAPIGph_Mthd blankingOnMtd;
/* 0x14 */ cAPIGph_Mthd blankingOffMtd;
};
extern cAPI_Interface g_cAPI_Interface;
#endif /* C_API_H */
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef C_M3D_H_
#define C_M3D_H_
#include "MSL_C/math.h"
#include "math.h"
#include "dolphin/types.h"
#include "dolphin/mtx/vec.h"
+2 -2
View File
@@ -8,11 +8,11 @@ u16 U_GetAtanTable(float, float);
s16 cM_atan2s(float y, float x);
float cM_atan2f(float y, float x);
void cM_initRnd(int, int, int);
float cM_rnd(void);
float cM_rnd();
float cM_rndF(float);
float cM_rndFX(float);
void cM_initRnd2(int, int, int);
float cM_rnd2(void);
float cM_rnd2();
float cM_rndF2(float);
float cM_rndFX2(float);
+1
View File
@@ -1,6 +1,7 @@
#ifndef C_PHASE_H
#define C_PHASE_H
#include "dolphin/types.h"
typedef int (*cPhs__Handler)(void*);
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef C_XYZ_H
#define C_XYZ_H
#include "MSL_C/math.h"
#include "math.h"
#include "dolphin/mtx/vec.h"
struct cXyz : Vec {
+2
View File
@@ -728,6 +728,8 @@ public:
virtual bool checkCopyRodEquip() const;
virtual BOOL checkCutJumpMode() const;
f32 getSpeedF() const { return speedF; }
bool getSumouCameraMode() const {
bool sumouCameraMode = false;
if (mSpecialMode != 0 && mSpecialMode < 0x26) {
+1 -1
View File
@@ -2,7 +2,7 @@
#define D_D_NAME_H
#include "d/d_select_cursor.h"
#include "MSL_C/string.h"
#include "string.h"
class CPaneMgr;
class CPaneMgrAlpha;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef D_SAVE_D_SAVE_H
#define D_SAVE_D_SAVE_H
#include "MSL_C/string.h"
#include "string.h"
#include "SSystem/SComponent/c_xyz.h"
#include "dolphin/os/OSTime.h"
#include "global.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef OS_H_
#define OS_H_
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
#include "dolphin/dvd/dvd.h"
#include "dolphin/os/OSAlarm.h"
+1 -1
View File
@@ -32,7 +32,7 @@ typedef int BOOL;
#define READU32_BE(ptr, offset) \
(((u32)ptr[offset] << 24) | ((u32)ptr[offset + 1] << 16) | ((u32)ptr[offset + 2] << 8) | (u32)ptr[offset + 3]);
#include "MSL_C/MSL_Common/Src/stddef.h"
#include "stddef.h"
#define INT32_MAX (0x7fffffff)
#define UINT32_MAX (0xffffffff)
-228
View File
@@ -1,228 +0,0 @@
#ifndef FDLIBM_H
#define FDLIBM_H
/* @(#)fdlibm.h 1.5 04/04/22 */
/*
* ====================================================
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Sometimes it's necessary to define __LITTLE_ENDIAN explicitly
but these catch some common cases. */
#if defined(i386) || defined(i486) || defined(intel) || defined(x86) || defined(i86pc) || \
defined(__alpha) || defined(__osf__)
#define __LITTLE_ENDIAN
#endif
#ifdef __LITTLE_ENDIAN
#define __HI(x) *(1 + (int*)&x)
#define __LO(x) *(int*)&x
#define __HIp(x) *(1 + (int*)x)
#define __LOp(x) *(int*)x
#else
#define __HI(x) *(int*)&x
#define __LO(x) *(1 + (int*)&x)
#define __HIp(x) *(int*)x
#define __LOp(x) *(1 + (int*)x)
#endif
// TODO: should __STDC__ actually be defined?
//#ifdef __STDC__
#define __P(p) p
//#else
//#define __P(p) ()
//#endif
/*
* ANSI/POSIX
*/
extern int signgam;
#define MAXFLOAT ((float)3.40282346638528860e+38)
enum fdversion { fdlibm_ieee = -1, fdlibm_svid, fdlibm_xopen, fdlibm_posix };
#define _LIB_VERSION_TYPE enum fdversion
#define _LIB_VERSION _fdlib_version
/* if global variable _LIB_VERSION is not desirable, one may
* change the following to be a constant by:
* #define _LIB_VERSION_TYPE const enum version
* In that case, after one initializes the value _LIB_VERSION (see
* s_lib_version.c) during compile time, it cannot be modified
* in the middle of a program
*/
extern _LIB_VERSION_TYPE _LIB_VERSION;
#define _IEEE_ fdlibm_ieee
#define _SVID_ fdlibm_svid
#define _XOPEN_ fdlibm_xopen
#define _POSIX_ fdlibm_posix
struct exception {
int type;
char* name;
double arg1;
double arg2;
double retval;
};
#define HUGE MAXFLOAT
/*
* set X_TLOSS = pi*2**52, which is possibly defined in <values.h>
* (one may replace the following line by "#include <values.h>")
*/
#define X_TLOSS 1.41484755040568800000e+16
#define DOMAIN 1
#define SING 2
#define OVERFLOW 3
#define UNDERFLOW 4
#define TLOSS 5
#define PLOSS 6
/*
* ANSI/POSIX
*/
extern double acos __P((double));
extern double asin __P((double));
extern double atan __P((double));
extern double atan2 __P((double, double));
extern double cos __P((double));
extern double sin __P((double));
extern double tan __P((double));
extern double cosh __P((double));
extern double sinh __P((double));
extern double tanh __P((double));
extern double exp __P((double));
extern double frexp __P((double, int*));
extern double ldexp __P((double, int));
extern double log __P((double));
extern double log10 __P((double));
extern double modf __P((double, double*));
extern double pow __P((double, double));
extern double sqrt __P((double));
extern double ceil __P((double));
extern double fabs __P((double));
extern double floor __P((double));
extern double fmod __P((double, double));
extern double erf __P((double));
extern double erfc __P((double));
extern double gamma __P((double));
extern double hypot __P((double, double));
extern int isnan __P((double));
extern int finite __P((double));
extern double j0 __P((double));
extern double j1 __P((double));
extern double jn __P((int, double));
extern double lgamma __P((double));
extern double y0 __P((double));
extern double y1 __P((double));
extern double yn __P((int, double));
extern double acosh __P((double));
extern double asinh __P((double));
extern double atanh __P((double));
extern double cbrt __P((double));
extern double logb __P((double));
extern double nextafter __P((double, double));
extern double remainder __P((double, double));
#ifdef _SCALB_INT
extern double scalb __P((double, int));
#else
extern double scalb __P((double, double));
#endif
extern int matherr __P((struct exception*));
/*
* IEEE Test Vector
*/
extern double significand __P((double));
/*
* Functions callable from C, intended to support IEEE arithmetic.
*/
extern double copysign __P((double, double));
extern int ilogb __P((double));
extern double rint __P((double));
extern double scalbn __P((double, int));
/*
* BSD math library entry points
*/
extern double expm1 __P((double));
extern double log1p __P((double));
/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
*/
#ifdef _REENTRANT
extern double gamma_r __P((double, int*));
extern double lgamma_r __P((double, int*));
#endif /* _REENTRANT */
/* ieee style elementary functions */
extern double __ieee754_sqrt __P((double));
extern double __ieee754_acos __P((double));
extern double __ieee754_acosh __P((double));
extern double __ieee754_log __P((double));
extern double __ieee754_atanh __P((double));
extern double __ieee754_asin __P((double));
extern double __ieee754_atan2 __P((double, double));
extern double __ieee754_exp __P((double));
extern double __ieee754_cosh __P((double));
extern double __ieee754_fmod __P((double, double));
extern double __ieee754_pow __P((double, double));
extern double __ieee754_lgamma_r __P((double, int*));
extern double __ieee754_gamma_r __P((double, int*));
extern double __ieee754_lgamma __P((double));
extern double __ieee754_gamma __P((double));
extern double __ieee754_log10 __P((double));
extern double __ieee754_sinh __P((double));
extern double __ieee754_hypot __P((double, double));
extern double __ieee754_j0 __P((double));
extern double __ieee754_j1 __P((double));
extern double __ieee754_y0 __P((double));
extern double __ieee754_y1 __P((double));
extern double __ieee754_jn __P((int, double));
extern double __ieee754_yn __P((int, double));
extern double __ieee754_remainder __P((double, double));
extern int __ieee754_rem_pio2 __P((double, double*));
#ifdef _SCALB_INT
extern double __ieee754_scalb __P((double, int));
#else
extern double __ieee754_scalb __P((double, double));
#endif
/* fdlibm kernel function */
extern double __kernel_standard __P((double, double, int));
extern double __kernel_sin __P((double, double, int));
extern double __kernel_cos __P((double, double));
extern double __kernel_tan __P((double, double, int));
extern int __kernel_rem_pio2 __P((double*, double*, int, int, int, const int*));
#ifdef __cplusplus
};
#endif
#endif /* FDLIBM_H */
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef M_DO_M_DO_PRINTF_H
#define M_DO_M_DO_PRINTF_H
#include "Runtime.PPCEABI.H/__va_arg.h"
#include "__va_arg.h"
#include "m_Do/m_Do_main.h"
void my_PutString(const char*);
@@ -11,7 +11,7 @@ public:
/* 80485E88 */ int Delete();
/* 0x568 */ request_of_phase_process_class mPhase;
/* 0x570 */ const char mArcName[16];
/* 0x570 */ char mArcName[16];
};
#endif /* D_A_SET_BGOBJ_H */
@@ -2,6 +2,7 @@
#define D_A_OBJ_EFF_H
#include "f_op/f_op_actor_mng.h"
#include "d/d_procname.h"
namespace daObjEff {
class Act_c : public fopAc_ac_c {
@@ -12,6 +13,12 @@ public:
};
/* 8057C9D8 */ int _create();
static void make_land_smoke(cXyz* i_pos, f32 i_scale) {
cXyz scale(i_scale, i_scale, i_scale);
scale *= 1.6666666f;
fopAcM_create(PROC_Obj_Eff, 3, i_pos, -1, NULL, &scale, -1);
}
};
}; // namespace daObjEff

Some files were not shown because too many files have changed in this diff Show More