[Git][cmucl/cmucl][issue-485-import-openlibm-single-float-functions] Address review comments
Raymond Toy pushed to branch issue-485-import-openlibm-single-float-functions at cmucl / cmucl Commits: 9b4cb111 by Raymond Toy at 2026-03-02T07:34:32-08:00 Address review comments Undo changes to GNUmakefile and Config.x86_common. Thus, this MR is just adding the openlibm files. - - - - - 2 changed files: - src/lisp/Config.x86_common - src/lisp/GNUmakefile Changes: ===================================== src/lisp/Config.x86_common ===================================== @@ -95,49 +95,10 @@ CORE_MATH_SRCS = $(CORE64_SRCS) $(CORE32_SRCS) endif -# If core-math is not defined such as on Darwin, we use the code from -# openlibm to implement the special functions for single-floats. -ifndef FEATURE_CORE_MATH -OPENLIBM_DIR = openlibm -OPENLIBM_SRCS = \ - $(OPENLIBM_DIR)/e_acosf.c \ - $(OPENLIBM_DIR)/e_acoshf.c \ - $(OPENLIBM_DIR)/e_asinf.c \ - $(OPENLIBM_DIR)/e_atan2f.c \ - $(OPENLIBM_DIR)/e_atanhf.c \ - $(OPENLIBM_DIR)/e_coshf.c \ - $(OPENLIBM_DIR)/e_expf.c \ - $(OPENLIBM_DIR)/e_hypotf.c \ - $(OPENLIBM_DIR)/e_log10f.c \ - $(OPENLIBM_DIR)/e_logf.c \ - $(OPENLIBM_DIR)/e_powf.c \ - $(OPENLIBM_DIR)/e_rem_pio2f.c \ - $(OPENLIBM_DIR)/e_sinhf.c \ - $(OPENLIBM_DIR)/k_cosf.c \ - $(OPENLIBM_DIR)/k_sinf.c \ - $(OPENLIBM_DIR)/k_tanf.c \ - $(OPENLIBM_DIR)/k_expf.c \ - $(OPENLIBM_DIR)/s_asinhf.c \ - $(OPENLIBM_DIR)/s_atanf.c \ - $(OPENLIBM_DIR)/s_cosf.c \ - $(OPENLIBM_DIR)/s_expm1f.c \ - $(OPENLIBM_DIR)/s_log1pf.c \ - $(OPENLIBM_DIR)/s_sinf.c \ - $(OPENLIBM_DIR)/s_sincosf.c \ - $(OPENLIBM_DIR)/s_tanf.c \ - $(OPENLIBM_DIR)/s_tanhf.c -endif - ifeq ($(filter 2% 3%, $(shell $(CC) -dumpversion)),) CPP_INCLUDE_OPTIONS := -iquote . -iquote $(PATH1) -ifndef FEATURE_CORE_MATH -CPP_INCLUDE_OPTIONS += -isystem $(PATH1)/$(OPENLIBM_DIR) -DOPENLIBM_USE_HOST_MATH_H -endif else -CPP_INCLUDE_OPTIONS := -I. -I$(PATH1) -I $(OPENLIBM_DIR) -I- -ifndef FEATURE_CORE_MATH -CPP_INCLUDE_OPTIONS += -I $(PATH1)/$(OPENLIBM_DIR) -endif +CPP_INCLUDE_OPTIONS := -I. -I$(PATH1) -I- endif CPPFLAGS := $(CPP_DEFINE_OPTIONS) $(CPP_INCLUDE_OPTIONS) ===================================== src/lisp/GNUmakefile ===================================== @@ -37,7 +37,6 @@ SRCS = lisp.c coreparse.c alloc.c monitor.c print.c interr.c \ runprog.c time.c case-mapping.c exec-init.c \ irrat.c \ ${CORE_MATH_SRCS} \ - ${OPENLIBM_SRCS} \ ${FDLIBM} ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC} View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/9b4cb111c22b791587b4775f... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/9b4cb111c22b791587b4775f... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)