mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-14 07:45:53 +00:00
Match and link float.c
Former-commit-id: 9afec991abda390238b72ec1dadf8cd5ceac7824
This commit is contained in:
parent
4ee3345bb2
commit
71e610936b
@ -870,7 +870,7 @@ LIBS = [
|
||||
["Runtime/rand", True],
|
||||
"Runtime/sscanf",
|
||||
"Runtime/string",
|
||||
"Runtime/float",
|
||||
["Runtime/float", True],
|
||||
"Runtime/strtold",
|
||||
["Runtime/uart_console_io", True],
|
||||
["Runtime/wchar_io", True],
|
||||
|
@ -745,7 +745,7 @@ MSL_PPCEABI_BARE_H :=\
|
||||
$(BUILD_DIR)/src/Runtime/rand.o\
|
||||
$(BUILD_DIR)/asm/Runtime/sscanf.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)/src/Runtime/uart_console_io.o\
|
||||
$(BUILD_DIR)/src/Runtime/wchar_io.o
|
||||
|
17
src/Runtime/float.c
Normal file
17
src/Runtime/float.c
Normal file
@ -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…
x
Reference in New Issue
Block a user