Skip to content

Commit 516e780

Browse files
authored
Strip down libmath. (#45)
libmath is mostly unused (except for trunc(), sin() and cos()), and most functions in it are either very imprecise or downright broken. Additionally, it is implemented in manner that conflicts with C standard. Instead of trying to fix all the shortcomings while maintaining unused functionality, I'm opting to simply remove most of it and only keep the parts that are currently necessary. Later readdition of the removed functions is possible, but there needs to be a reliable way to evaluate their quality first.
1 parent 7f7d642 commit 516e780

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1988
-9386
lines changed

boot/Makefile.common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ RD_TESTS = \
243243
$(USPACE_PATH)/lib/posix/test-libposix \
244244
$(USPACE_PATH)/lib/sif/test-libsif \
245245
$(USPACE_PATH)/lib/uri/test-liburi \
246+
$(USPACE_PATH)/lib/math/test-libmath \
246247
$(USPACE_PATH)/drv/bus/usb/xhci/test-xhci \
247248
$(USPACE_PATH)/app/bdsh/test-bdsh \
248249
$(USPACE_PATH)/srv/net/tcp/test-tcp \

uspace/Makefile.common

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ LIBCPP_INCLUDES_FLAGS = -I$(LIBCPP_PREFIX)/include
108108
LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
109109
LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
110110

111-
LIBMATH_PREFIX = $(LIB_PREFIX)/math
112-
LIBMATH_INCLUDES_FLAGS = \
113-
-I$(LIBMATH_PREFIX)/include \
114-
-I$(LIBMATH_PREFIX)/arch/$(UARCH)/include
115-
116-
LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
117111
LIBDLTEST_PREFIX = $(LIB_PREFIX)/dltest
118112

119113
START_FILES = $(LIBC_PREFIX)/crt0.o $(LIBC_PREFIX)/crt1.o

0 commit comments

Comments
 (0)