Changes in / [6946f23:f5ceb18] in mainline
- Files:
-
- 1 added
- 6 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r6946f23 rf5ceb18 97 97 rm -f $(USPACE_PATH)/dist/srv/* 98 98 rm -rf $(USPACE_PATH)/dist/drv/* 99 rm - rf $(USPACE_PATH)/dist/lib/*99 rm -f $(USPACE_PATH)/dist/lib/* 100 100 rm -rf $(USPACE_PATH)/dist/inc/* 101 101 rm -f $(USPACE_PATH)/dist/app/* -
uspace/Makefile
r6946f23 rf5ceb18 240 240 lib/softrend \ 241 241 lib/draw \ 242 lib/math \243 242 lib/net \ 244 243 lib/nic \ -
uspace/Makefile.common
r6946f23 rf5ceb18 45 45 # 46 46 # POSIX_COMPAT set to 'y' to use POSIX compatibility layer 47 # NEEDS_MATH set to 'y' to add implementation of mathematical functions48 47 # 49 48 # Optionally, for a binary: … … 110 109 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 111 110 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint 112 LIBMATH_PREFIX = $(LIB_PREFIX)/math113 111 114 112 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix … … 235 233 endif 236 234 237 # Do we need math?238 ifeq ($(NEEDS_MATH),y)239 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a240 endif241 242 235 ## Setup platform configuration 243 236 # -
uspace/lib/posix/Makefile
r6946f23 rf5ceb18 60 60 source/getopt.c \ 61 61 source/locale.c \ 62 source/math.c \ 62 63 source/pthread/condvar.c \ 63 64 source/pthread/keys.c \ -
uspace/lib/posix/include/posix/math.h
r6946f23 rf5ceb18 36 36 #define POSIX_MATH_H_ 37 37 38 #include "libc/math.h" 38 #ifndef __POSIX_DEF__ 39 #define __POSIX_DEF__(x) x 40 #endif 41 42 #ifdef __GNUC__ 43 #define HUGE_VAL (__builtin_huge_val()) 44 #endif 45 46 /* Normalization Functions */ 47 extern double __POSIX_DEF__(ldexp)(double x, int exp); 48 extern double __POSIX_DEF__(frexp)(double num, int *exp); 49 50 double __POSIX_DEF__(fabs)(double x); 51 double __POSIX_DEF__(floor)(double x); 52 double __POSIX_DEF__(modf)(double x, double *iptr); 53 double __POSIX_DEF__(fmod)(double x, double y); 54 double __POSIX_DEF__(pow)(double x, double y); 55 double __POSIX_DEF__(exp)(double x); 56 double __POSIX_DEF__(sqrt)(double x); 57 double __POSIX_DEF__(log)(double x); 58 double __POSIX_DEF__(sin)(double x); 59 double __POSIX_DEF__(cos)(double x); 60 double __POSIX_DEF__(atan2)(double y, double x); 39 61 40 62 #endif /* POSIX_MATH_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.