Changeset 224174f in mainline for uspace/lib/posix/include/posix/math.h
- Timestamp:
- 2013-07-11T13:16:57Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b3e8840, b2c96093
- Parents:
- 990ab7d (diff), 3a67d63 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/math.h
r990ab7d r224174f 36 36 #define POSIX_MATH_H_ 37 37 38 #ifndef __POSIX_DEF__ 39 #define __POSIX_DEF__(x) x 40 #endif 41 38 42 #ifdef __GNUC__ 39 43 #define HUGE_VAL (__builtin_huge_val()) … … 41 45 42 46 /* Normalization Functions */ 43 extern double posix_ldexp(double x, int exp);44 extern double posix_frexp(double num, int *exp);47 extern double __POSIX_DEF__(ldexp)(double x, int exp); 48 extern double __POSIX_DEF__(frexp)(double num, int *exp); 45 49 46 double posix_fabs(double x); 47 double posix_floor(double x); 48 double posix_modf(double x, double *iptr); 49 double posix_fmod(double x, double y); 50 double posix_pow(double x, double y); 51 double posix_exp(double x); 52 double posix_sqrt(double x); 53 double posix_log(double x); 54 double posix_sin(double x); 55 double posix_cos(double x); 56 double posix_atan2(double y, double x); 57 58 #ifndef LIBPOSIX_INTERNAL 59 #define ldexp posix_ldexp 60 #define frexp posix_frexp 61 62 #define fabs posix_fabs 63 #define floor posix_floor 64 #define modf posix_modf 65 #define fmod posix_fmod 66 #define pow posix_pow 67 #define exp posix_exp 68 #define sqrt posix_sqrt 69 #define log posix_log 70 #define sin posix_sin 71 #define cos posix_cos 72 #define atan2 posix_atan2 73 #endif 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); 74 61 75 62 #endif /* POSIX_MATH_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.