From 9de2f5c391cf613c97271a5c292c60d107caaa7a Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 20 May 2021 11:34:28 +0200 Subject: [PATCH] math, fenv, complex: add headers through OpenLibm --- CMakeLists.txt | 4 ++++ STATUS | 3 --- include/complex.h | 4 ++++ include/fenv.h | 4 ++++ include/math.h | 4 ++++ 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 include/complex.h create mode 100644 include/fenv.h create mode 100644 include/math.h diff --git a/CMakeLists.txt b/CMakeLists.txt index b78b588..a796024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/STATUS b/STATUS index 3238b46..db0b572 100644 --- a/STATUS +++ b/STATUS @@ -28,7 +28,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested 7.3 Provided by Lephenixnoir's port of OpenLibm. - TODO: Check standard compliance 7.4 7.4.1 is*: DONE @@ -39,7 +38,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested 7.6 Provided by Lephenixnoir's port of OpenLibm. - TODO: Check standard compliance 7.7 Provided by GCC. @@ -72,7 +70,6 @@ DONE: Function/symbol/macro is defined, builds, links, and is tested 7.12 Provided by Lephenixnoir's port of OpenLibm. - TODO: Check standard compliance 7.13 7.13.1 setjmp: TEST diff --git a/include/complex.h b/include/complex.h new file mode 100644 index 0000000..986bf49 --- /dev/null +++ b/include/complex.h @@ -0,0 +1,4 @@ +/* On SuperH, we use a port of OpenLibm. */ +#ifdef __SUPPORT_ARCH_SH +# include +#endif diff --git a/include/fenv.h b/include/fenv.h new file mode 100644 index 0000000..946e414 --- /dev/null +++ b/include/fenv.h @@ -0,0 +1,4 @@ +/* On SuperH, we use a port of OpenLibm. */ +#ifdef __SUPPORT_ARCH_SH +# include +#endif diff --git a/include/math.h b/include/math.h new file mode 100644 index 0000000..b076298 --- /dev/null +++ b/include/math.h @@ -0,0 +1,4 @@ +/* On SuperH, we use a port of OpenLibm. */ +#ifdef __SUPPORT_ARCH_SH +# include +#endif