Merge pull request #560 from TakaRikka/msl

most of MSL_C/Runtime done
This commit is contained in:
Jasper St. Pierre
2023-12-27 21:29:11 -08:00
committed by GitHub
231 changed files with 7624 additions and 901 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
#define JGEOMETRY_H
#include "dolphin/mtx/vec.h"
#include "MSL_C/float.h"
#include "MSL_C/math.h"
#include "float.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"
extern u32 jmaSinShift;
extern f32 *jmaSinTable;
+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"
namespace std {
+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 BlockHeader {
const BlockHeader* getNext() const {
-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 */
-131
View File
@@ -1,131 +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,4 +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,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_ACOS_H
#define MATH_DOUBLE_PRECISION_E_ACOS_H
#endif /* MATH_DOUBLE_PRECISION_E_ACOS_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_ASIN_H
#define MATH_DOUBLE_PRECISION_E_ASIN_H
#endif /* MATH_DOUBLE_PRECISION_E_ASIN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_ATAN2_H
#define MATH_DOUBLE_PRECISION_E_ATAN2_H
#endif /* MATH_DOUBLE_PRECISION_E_ATAN2_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_EXP_H
#define MATH_DOUBLE_PRECISION_E_EXP_H
#endif /* MATH_DOUBLE_PRECISION_E_EXP_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_FMOD_H
#define MATH_DOUBLE_PRECISION_E_FMOD_H
#endif /* MATH_DOUBLE_PRECISION_E_FMOD_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_POW_H
#define MATH_DOUBLE_PRECISION_E_POW_H
#endif /* MATH_DOUBLE_PRECISION_E_POW_H */
@@ -1,4 +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,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_E_SQRT_H
#define MATH_DOUBLE_PRECISION_E_SQRT_H
#endif /* MATH_DOUBLE_PRECISION_E_SQRT_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_K_COS_H
#define MATH_DOUBLE_PRECISION_K_COS_H
#endif /* MATH_DOUBLE_PRECISION_K_COS_H */
@@ -1,4 +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,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_K_SIN_H
#define MATH_DOUBLE_PRECISION_K_SIN_H
#endif /* MATH_DOUBLE_PRECISION_K_SIN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_K_TAN_H
#define MATH_DOUBLE_PRECISION_K_TAN_H
#endif /* MATH_DOUBLE_PRECISION_K_TAN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_ATAN_H
#define MATH_DOUBLE_PRECISION_S_ATAN_H
#endif /* MATH_DOUBLE_PRECISION_S_ATAN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_CEIL_H
#define MATH_DOUBLE_PRECISION_S_CEIL_H
#endif /* MATH_DOUBLE_PRECISION_S_CEIL_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_COPYSIGN_H
#define MATH_DOUBLE_PRECISION_S_COPYSIGN_H
#endif /* MATH_DOUBLE_PRECISION_S_COPYSIGN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_COS_H
#define MATH_DOUBLE_PRECISION_S_COS_H
#endif /* MATH_DOUBLE_PRECISION_S_COS_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_FLOOR_H
#define MATH_DOUBLE_PRECISION_S_FLOOR_H
#endif /* MATH_DOUBLE_PRECISION_S_FLOOR_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_FREXP_H
#define MATH_DOUBLE_PRECISION_S_FREXP_H
#endif /* MATH_DOUBLE_PRECISION_S_FREXP_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_LDEXP_H
#define MATH_DOUBLE_PRECISION_S_LDEXP_H
#endif /* MATH_DOUBLE_PRECISION_S_LDEXP_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_MODF_H
#define MATH_DOUBLE_PRECISION_S_MODF_H
#endif /* MATH_DOUBLE_PRECISION_S_MODF_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_SIN_H
#define MATH_DOUBLE_PRECISION_S_SIN_H
#endif /* MATH_DOUBLE_PRECISION_S_SIN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_S_TAN_H
#define MATH_DOUBLE_PRECISION_S_TAN_H
#endif /* MATH_DOUBLE_PRECISION_S_TAN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_ACOS_H
#define MATH_DOUBLE_PRECISION_W_ACOS_H
#endif /* MATH_DOUBLE_PRECISION_W_ACOS_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_ASIN_H
#define MATH_DOUBLE_PRECISION_W_ASIN_H
#endif /* MATH_DOUBLE_PRECISION_W_ASIN_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_ATAN2_H
#define MATH_DOUBLE_PRECISION_W_ATAN2_H
#endif /* MATH_DOUBLE_PRECISION_W_ATAN2_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_EXP_H
#define MATH_DOUBLE_PRECISION_W_EXP_H
#endif /* MATH_DOUBLE_PRECISION_W_EXP_H */
@@ -1,6 +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,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_POW_H
#define MATH_DOUBLE_PRECISION_W_POW_H
#endif /* MATH_DOUBLE_PRECISION_W_POW_H */
@@ -1,4 +0,0 @@
#ifndef MATH_DOUBLE_PRECISION_W_SQRT_H
#define MATH_DOUBLE_PRECISION_W_SQRT_H
#endif /* MATH_DOUBLE_PRECISION_W_SQRT_H */
@@ -1,4 +0,0 @@
#ifndef PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H
#define PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H
#endif /* PPC_EABI_SRC_CRITICAL_REGIONSGAMECUBE_H */
-4
View File
@@ -1,4 +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 */
-15
View File
@@ -1,15 +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);
} // namespace std
#endif
-15
View File
@@ -1,15 +0,0 @@
#ifndef MSL_BITSET_H_
#define MSL_BITSET_H_
namespace std {
template <size_t N>
class bitset {
bitset();
void set(size_t pos, bool val);
void reset(size_t pos);
bool test(size_t pos) 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
-9
View File
@@ -1,9 +0,0 @@
#ifndef MSL_FUNCTIONAL_H_
#define MSL_FUNCTIONAL_H_
namespace std {
template <class T>
struct less {};
} // namespace std
#endif
-110
View File
@@ -1,110 +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 DEG_TO_RAD(degrees) (degrees * (M_PI / 180.0f))
#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 tan(double);
float tanf(float);
inline double sqrt_step(double tmpd, float mag) {
return tmpd * 0.5 * (3.0 - mag * (tmpd * tmpd));
}
extern inline float sqrtf(float x) {
const double _half = .5;
const double _three = 3.0;
volatile float y;
if (x > 0.0f) {
double guess = __frsqrte((double)x); // returns an approximation to
guess = _half * guess * (_three - guess * guess * x); // now have 12 sig bits
guess = _half * guess * (_three - guess * guess * x); // now have 24 sig bits
guess = _half * guess * (_three - guess * guess * x); // now have 32 sig bits
y = (float)(x * guess);
return y;
}
return x;
}
extern inline double sqrt(double x) {
if(x > 0.0)
{
double guess = __frsqrte(x); /* returns an approximation to */
guess = .5*guess*(3.0 - guess*guess*x); /* now have 8 sig bits */
guess = .5*guess*(3.0 - guess*guess*x); /* now have 16 sig bits */
guess = .5*guess*(3.0 - guess*guess*x); /* now have 32 sig bits */
guess = .5*guess*(3.0 - guess*guess*x); /* now have > 53 sig bits */
return x*guess ;
}
else if ( x == 0 )
return 0;
else if ( x )
return NAN;
return HUGE_VALF;
}
inline float atan2f(float y, float x) {
return (float)atan2(y, x);
}
// these are duplicated due to sinf/cosf having a symbol, but
// still being used as inlines elsewhere
inline float i_sinf(float x) {
return sin(x);
}
inline float i_cosf(float x) {
return cos(x);
}
#ifdef __cplusplus
};
#endif
#endif
-10
View File
@@ -1,10 +0,0 @@
#ifndef MSL_NEW_H_
#define MSL_NEW_H_
#include "MSL_C/MSL_Common/Src/stddef.h"
inline void* operator new(size_t size, void* ptr) {
return ptr;
}
#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
-9
View File
@@ -1,9 +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"
#include "MSL_C/MSL_Common/Src/printf.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,4 +0,0 @@
#ifndef GCN_MEM_ALLOC_H
#define GCN_MEM_ALLOC_H
#endif /* GCN_MEM_ALLOC_H */
@@ -1,4 +0,0 @@
#ifndef GECKO_EXCEPTIONPPC_H
#define GECKO_EXCEPTIONPPC_H
#endif /* GECKO_EXCEPTIONPPC_H */
-28
View File
@@ -1,28 +0,0 @@
#ifndef _NMWEXCEPTION
#define _NMWEXCEPTION
#include "dolphin/types.h"
#include "Runtime.PPCEABI.H/__ppc_eabi_linker.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DTORCALL(dtor, objptr) (((void (*)(void*, int))dtor)(objptr, -1))
typedef struct DestructorChain {
struct DestructorChain* next;
void* destructor;
void* object;
} DestructorChain;
void __unregister_fragment(int fragmentID);
int __register_fragment(struct __eti_init_info* info, char* TOC);
void* __register_global_object(void* object, void* destructor, void* regmem);
void __destroy_global_chain(void);
#ifdef __cplusplus
}
#endif
#endif // _NMWEXCEPTION
@@ -1,6 +0,0 @@
#ifndef __INIT_CPP_EXCEPTIONS_H
#define __INIT_CPP_EXCEPTIONS_H
#include "dolphin/types.h"
#endif /* __INIT_CPP_EXCEPTIONS_H */
-16
View File
@@ -1,16 +0,0 @@
#ifndef RUNTIME_MEM_H
#define RUNTIME_MEM_H
#ifdef __cplusplus
extern "C" {
#endif
__declspec(section ".init") void* memcpy(void* dest, const void* src, size_t n);
__declspec(section ".init") void __fill_mem(void* dest, int val, size_t count);
__declspec(section ".init") void* memset(void* dest, int val, size_t count);
#ifdef __cplusplus
}
#endif
#endif /* RUNTIME_MEM_H */
@@ -1,71 +0,0 @@
#ifndef __PPC_EABI_LINKER
#define __PPC_EABI_LINKER
extern char _stack_addr[];
extern char _stack_end[];
extern char _heap_addr[];
extern char _heap_end[];
extern const char _fextabindex_rom[];
extern char _fextabindex[];
extern char _eextabindex[];
extern char _SDA_BASE_[];
extern char _SDA2_BASE_[];
typedef struct __rom_copy_info {
char* rom;
char* addr;
unsigned int size;
} __rom_copy_info;
extern __rom_copy_info _rom_copy_info[];
typedef struct __bss_init_info {
char* addr;
unsigned int size;
} __bss_init_info;
extern __bss_init_info _bss_init_info[];
typedef struct __eti_init_info {
void* eti_start;
void* eti_end;
void* code_start;
unsigned long code_size;
} __eti_init_info;
extern __eti_init_info _eti_init_info[];
extern const char _f_init_rom[];
extern char _f_init[];
extern char _e_init[];
extern const char _f_text_rom[];
extern char _f_text[];
extern char _e_text[];
extern const char _f_rodata_rom[];
extern char _f_rodata[];
extern char _e_rodata[];
extern const char _fextab_rom[];
extern char _fextab[];
extern char _eextab[];
extern const char _f_data_rom[];
extern char _f_data[];
extern char _e_data[];
extern char _f_bss[];
extern char _e_bss[];
extern const char _f_sdata_rom[];
extern char _f_sdata[];
extern char _e_sdata[];
extern char _f_sbss[];
extern char _e_sbss[];
extern const char _f_sdata2_rom[];
extern char _f_sdata2[];
extern char _e_sdata2[];
extern char _f_sbss2[];
extern char _e_sbss2[];
extern const char _f_PPC_EMB_sdata0_rom[];
extern char _f_PPC_EMB_sdata0[];
extern char _e_PPC_EMB_sdata0[];
extern char _f_PPC_EMB_sbss0[];
extern char _e_PPC_EMB_sbss0[];
#endif // __PPC_EABI_LINKER
-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 __INTELLISENSE__
#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(ap, _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,4 +0,0 @@
#ifndef GLOBAL_DESTRUCTOR_CHAIN_H
#define GLOBAL_DESTRUCTOR_CHAIN_H
#endif /* GLOBAL_DESTRUCTOR_CHAIN_H */
-18
View File
@@ -1,18 +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;
const __ptmf __ptmf_null;
long __ptmf_test(__ptmf* ptmf);
void __ptmf_cmpr(register __ptmf* this, register __ptmf* other);
void __ptmf_scall(...);
#endif /* PTMF_H */
-6
View File
@@ -1,6 +0,0 @@
#ifndef RUNTIME_H
#define RUNTIME_H
#include "dolphin/types.h"
#endif /* RUNTIME_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"
#include "dolphin/mtx/mtx.h"
+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 cXy {
+1 -1
View File
@@ -3,7 +3,7 @@
#include "SSystem/SComponent/c_xyz.h"
#include "d/d_event_data.h"
#include "MSL_C/string.h"
#include "string.h"
class fopAc_ac_c;
+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
@@ -33,7 +33,7 @@ typedef int BOOL;
(((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)
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef F_OP_ACTOR_MNG_H_
#define F_OP_ACTOR_MNG_H_
#include "MSL_C/new.h"
#include "new.h"
#include "f_op/f_op_actor.h"
#include "f_op/f_op_actor_iter.h"
#include "f_pc/f_pc_manager.h"
-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"
extern "C" {