mirror of https://github.com/PrimeDecomp/prime.git
Match and link float.c
This commit is contained in:
parent
da2b4706db
commit
9afec991ab
|
@ -870,7 +870,7 @@ LIBS = [
|
||||||
["Runtime/rand", True],
|
["Runtime/rand", True],
|
||||||
"Runtime/sscanf",
|
"Runtime/sscanf",
|
||||||
"Runtime/string",
|
"Runtime/string",
|
||||||
"Runtime/float",
|
["Runtime/float", True],
|
||||||
"Runtime/strtold",
|
"Runtime/strtold",
|
||||||
["Runtime/uart_console_io", True],
|
["Runtime/uart_console_io", True],
|
||||||
["Runtime/wchar_io", True],
|
["Runtime/wchar_io", True],
|
||||||
|
|
|
@ -745,7 +745,7 @@ MSL_PPCEABI_BARE_H :=\
|
||||||
$(BUILD_DIR)/src/Runtime/rand.o\
|
$(BUILD_DIR)/src/Runtime/rand.o\
|
||||||
$(BUILD_DIR)/asm/Runtime/sscanf.o\
|
$(BUILD_DIR)/asm/Runtime/sscanf.o\
|
||||||
$(BUILD_DIR)/asm/Runtime/string.o\
|
$(BUILD_DIR)/asm/Runtime/string.o\
|
||||||
$(BUILD_DIR)/asm/Runtime/float.o\
|
$(BUILD_DIR)/src/Runtime/float.o\
|
||||||
$(BUILD_DIR)/asm/Runtime/strtold.o\
|
$(BUILD_DIR)/asm/Runtime/strtold.o\
|
||||||
$(BUILD_DIR)/src/Runtime/uart_console_io.o\
|
$(BUILD_DIR)/src/Runtime/uart_console_io.o\
|
||||||
$(BUILD_DIR)/src/Runtime/wchar_io.o
|
$(BUILD_DIR)/src/Runtime/wchar_io.o
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
|
||||||
|
#include "math.h"
|
||||||
|
|
||||||
|
_INT32 __float_nan[] = {0x7FFFFFFF};
|
||||||
|
_INT32 __float_huge[] = {0x7F800000};
|
||||||
|
_INT32 __double_min[] = {0x00100000, 0};
|
||||||
|
_INT32 __double_max[] = {0x7fefffff, 0xffffffff};
|
||||||
|
_INT32 __double_epsilon[] = {0x3cb00000, 0};
|
||||||
|
_INT32 __double_tiny[] = {0, 1};
|
||||||
|
_INT32 __double_huge[] = {0x7FF00000, 0};
|
||||||
|
_INT32 __double_nan[] = {0x7FFFFFFF, 0xFFFFFFFF};
|
||||||
|
_INT32 __extended_min[] = {0x00100000, 0};
|
||||||
|
_INT32 __extended_max[] = {0x7fefffff, 0xffffffff};
|
||||||
|
_INT32 __extended_epsilon[] = {0x3cb00000, 0};
|
||||||
|
_INT32 __extended_tiny[] = {0, 1};
|
||||||
|
_INT32 __extended_huge[] = {0x7FF00000, 0};
|
||||||
|
_INT32 __extended_nan[] = {0x7FFFFFFF, 0xFFFFFFFF};
|
Loading…
Reference in New Issue