Changeset d9be488 in mainline for uspace/lib/math
- Timestamp:
- 2014-03-01T23:03:21Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 071fefec
- Parents:
- 75baf6e
- Location:
- uspace/lib/math
- Files:
-
- 31 added
- 1 deleted
- 1 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/Makefile
r75baf6e rd9be488 28 28 29 29 USPACE_PREFIX = ../.. 30 ROOT_PATH = $(USPACE_PREFIX)/.. 31 32 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config 33 30 34 LIBRARY = libmath 35 SLIBRARY = libmath.so.0.0 36 LSONAME = libmath.so0 37 MATH = y 38 39 -include $(CONFIG_MAKEFILE) 40 -include arch/$(UARCH)/Makefile.inc 41 42 GENERIC_SOURCES = \ 43 generic/trunc.c 31 44 32 45 SOURCES = \ 33 src/dummy.c 46 $(GENERIC_SOURCES) \ 47 $(ARCH_SOURCES) 34 48 35 49 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/math/arch/amd64/include/libarch/math.h
r75baf6e rd9be488 1 1 /* 2 * Copyright (c) 201 1 Petr Koupy2 * Copyright (c) 2014 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup lib posix29 /** @addtogroup libmathamd64 30 30 * @{ 31 31 */ 32 /** @file Mathematical operations. 33 * 34 * The implementation is provided by a separate library to allow 35 * switching of the implementations. 32 /** @file 36 33 */ 37 34 38 #ifndef LIB C_MATH_H_39 #define LIB C_MATH_H_35 #ifndef LIBMATH_amd64_MATH_H_ 36 #define LIBMATH_amd64_MATH_H_ 40 37 41 #ifdef __GNUC__42 #define HUGE_VAL (__builtin_huge_val())43 #endif44 45 extern double ldexp(double, int);46 extern double frexp(double, int *);47 48 extern double fabs(double);49 extern double floor(double);50 extern double ceil(double);51 extern double modf(double, double *);52 extern double fmod(double, double);53 extern double pow(double, double);54 extern double exp(double);55 extern double expm1(double);56 extern double sqrt(double);57 extern double log(double);58 extern double log10(double);59 38 extern double sin(double); 60 extern double sinh(double);61 extern double asin(double);62 extern double asinh(double);63 39 extern double cos(double); 64 extern double cosh(double); 65 extern double acos(double); 66 extern double acosh(double); 67 extern double tan(double); 68 extern double tanh(double); 69 extern double atan(double); 70 extern double atanh(double); 71 extern double atan2(double, double); 72 73 double copysign(double, double); 40 extern double trunc(double); 74 41 75 42 #endif -
uspace/lib/math/include/math.h
r75baf6e rd9be488 1 1 /* 2 * Copyright (c) 20 05 Josef Cejka2 * Copyright (c) 2011 Petr Koupy 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup softfloat29 /** @addtogroup libmath 30 30 * @{ 31 31 */ 32 /** @file Other functions (power, complex).32 /** @file Mathematical operations. 33 33 */ 34 34 35 #ifndef __OTHER_H__ 36 #define __OTHER_H__ 35 #ifndef LIBMATH_MATH_H_ 36 #define LIBMATH_MATH_H_ 37 38 #include <libarch/math.h> 37 39 38 40 #endif -
uspace/lib/math/include/trunc.h
r75baf6e rd9be488 1 1 /* 2 * Copyright (c) 20 05 Josef Cejka2 * Copyright (c) 2014 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup softfloat29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 /** @file Other functions (power, complex).32 /** @file 33 33 */ 34 34 35 #ifndef LIBMATH_TRUNC_H_ 36 #define LIBMATH_TRUNC_H_ 37 38 #include <mathtypes.h> 39 40 extern float64 trunc_float64(float64); 41 42 #endif 35 43 36 44 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.