Changes in / [6946f23:f5ceb18] in mainline


Ignore:
Files:
1 added
6 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r6946f23 rf5ceb18  
    9797        rm -f $(USPACE_PATH)/dist/srv/*
    9898        rm -rf $(USPACE_PATH)/dist/drv/*
    99         rm -rf $(USPACE_PATH)/dist/lib/*
     99        rm -f $(USPACE_PATH)/dist/lib/*
    100100        rm -rf $(USPACE_PATH)/dist/inc/*
    101101        rm -f $(USPACE_PATH)/dist/app/*
  • uspace/Makefile

    r6946f23 rf5ceb18  
    240240        lib/softrend \
    241241        lib/draw \
    242         lib/math \
    243242        lib/net \
    244243        lib/nic \
  • uspace/Makefile.common

    r6946f23 rf5ceb18  
    4545#
    4646#   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
    47 #   NEEDS_MATH         set to 'y' to add implementation of mathematical functions
    4847#
    4948# Optionally, for a binary:
     
    110109LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
    111110LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    112 LIBMATH_PREFIX = $(LIB_PREFIX)/math
    113111
    114112LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
     
    235233endif
    236234
    237 # Do we need math?
    238 ifeq ($(NEEDS_MATH),y)
    239         BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
    240 endif
    241 
    242235## Setup platform configuration
    243236#
  • uspace/lib/posix/Makefile

    r6946f23 rf5ceb18  
    6060        source/getopt.c \
    6161        source/locale.c \
     62        source/math.c \
    6263        source/pthread/condvar.c \
    6364        source/pthread/keys.c \
  • uspace/lib/posix/include/posix/math.h

    r6946f23 rf5ceb18  
    3636#define POSIX_MATH_H_
    3737
    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 */
     47extern double __POSIX_DEF__(ldexp)(double x, int exp);
     48extern double __POSIX_DEF__(frexp)(double num, int *exp);
     49
     50double __POSIX_DEF__(fabs)(double x);
     51double __POSIX_DEF__(floor)(double x);
     52double __POSIX_DEF__(modf)(double x, double *iptr);
     53double __POSIX_DEF__(fmod)(double x, double y);
     54double __POSIX_DEF__(pow)(double x, double y);
     55double __POSIX_DEF__(exp)(double x);
     56double __POSIX_DEF__(sqrt)(double x);
     57double __POSIX_DEF__(log)(double x);
     58double __POSIX_DEF__(sin)(double x);
     59double __POSIX_DEF__(cos)(double x);
     60double __POSIX_DEF__(atan2)(double y, double x);
    3961
    4062#endif /* POSIX_MATH_H_ */
Note: See TracChangeset for help on using the changeset viewer.