math, fenv, complex: add headers through OpenLibm

This commit is contained in:
Lephenixnoir 2021-05-20 11:34:28 +02:00
parent 99339ae9f4
commit 9de2f5c391
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
5 changed files with 16 additions and 3 deletions

View File

@ -174,6 +174,10 @@ endif()
add_library(fxlibc ${SOURCES})
target_include_directories(fxlibc PRIVATE include/)
if(sh-generic IN_LIST TARGET_FOLDERS)
target_include_directories(fxlibc PRIVATE "${FXSDK_COMPILER_INSTALL}/include/openlibm")
endif()
foreach(FOLDER IN LISTS TARGET_FOLDERS)
target_include_directories(fxlibc PRIVATE include/target/${FOLDER}/)
endforeach()

3
STATUS
View File

@ -28,7 +28,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested
7.3 <complex.h>
Provided by Lephenixnoir's port of OpenLibm.
TODO: Check standard compliance
7.4 <ctype.h>
7.4.1 is*: DONE
@ -39,7 +38,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested
7.6 <fenv.h>
Provided by Lephenixnoir's port of OpenLibm.
TODO: Check standard compliance
7.7 <float.h>
Provided by GCC.
@ -72,7 +70,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested
7.12 <math.h>
Provided by Lephenixnoir's port of OpenLibm.
TODO: Check standard compliance
7.13 <setjmp.h>
7.13.1 setjmp: TEST

4
include/complex.h Normal file
View File

@ -0,0 +1,4 @@
/* On SuperH, we use a port of OpenLibm. */
#ifdef __SUPPORT_ARCH_SH
# include <openlibm_complex.h>
#endif

4
include/fenv.h Normal file
View File

@ -0,0 +1,4 @@
/* On SuperH, we use a port of OpenLibm. */
#ifdef __SUPPORT_ARCH_SH
# include <openlibm_fenv.h>
#endif

4
include/math.h Normal file
View File

@ -0,0 +1,4 @@
/* On SuperH, we use a port of OpenLibm. */
#ifdef __SUPPORT_ARCH_SH
# include <openlibm_math.h>
#endif