* libc/include/math.h: Missing from previous checkin.

This commit is contained in:
Corinna Vinschen 2010-12-03 16:08:48 +00:00
parent 79f8be3bff
commit fd4515030c
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2010-12-03 Craig Howland <howland@LGSInnovations.com>
* libc/include/math.h: Missing from previous checkin.
2010-12-02 Craig Howland <howland@LGSInnovations.com> 2010-12-02 Craig Howland <howland@LGSInnovations.com>
* libm/common/s_log2.c: Change from using M_LOG2_E to M_LN2 define * libm/common/s_log2.c: Change from using M_LOG2_E to M_LN2 define

View File

@ -32,7 +32,7 @@ union __ldmath
#endif #endif
/* Natural log of 2 */ /* Natural log of 2 */
#define _M_LOG2_E 0.693147180559945309417 #define _M_LN2 0.693147180559945309417
#if defined(__GNUC__) && \ #if defined(__GNUC__) && \
( (__GNUC__ >= 4) || \ ( (__GNUC__ >= 4) || \
@ -276,7 +276,7 @@ extern double erf _PARAMS((double));
extern double erfc _PARAMS((double)); extern double erfc _PARAMS((double));
extern double log2 _PARAMS((double)); extern double log2 _PARAMS((double));
#if !defined(__cplusplus) #if !defined(__cplusplus)
#define log2(x) (log (x) / _M_LOG2_E) #define log2(x) (log (x) / _M_LN2)
#endif #endif
#ifndef __math_68881 #ifndef __math_68881
@ -356,7 +356,7 @@ extern float erff _PARAMS((float));
extern float erfcf _PARAMS((float)); extern float erfcf _PARAMS((float));
extern float log2f _PARAMS((float)); extern float log2f _PARAMS((float));
#if !defined(__cplusplus) #if !defined(__cplusplus)
#define log2f(x) (logf (x) / (float) _M_LOG2_E) #define log2f(x) (logf (x) / (float_t) _M_LN2)
#endif #endif
extern float hypotf _PARAMS((float, float)); extern float hypotf _PARAMS((float, float));
#endif /* ! defined (_REENT_ONLY) */ #endif /* ! defined (_REENT_ONLY) */
@ -529,7 +529,7 @@ extern int matherr _PARAMS((struct exception *e));
#define M_E 2.7182818284590452354 #define M_E 2.7182818284590452354
#define M_LOG2E 1.4426950408889634074 #define M_LOG2E 1.4426950408889634074
#define M_LOG10E 0.43429448190325182765 #define M_LOG10E 0.43429448190325182765
#define M_LN2 0.69314718055994530942 #define M_LN2 _M_LN2
#define M_LN10 2.30258509299404568402 #define M_LN10 2.30258509299404568402
#define M_PI 3.14159265358979323846 #define M_PI 3.14159265358979323846
#define M_TWOPI (M_PI * 2.0) #define M_TWOPI (M_PI * 2.0)
@ -546,7 +546,7 @@ extern int matherr _PARAMS((struct exception *e));
#define M_LN2HI 6.9314718036912381649E-1 #define M_LN2HI 6.9314718036912381649E-1
#define M_SQRT3 1.73205080756887719000 #define M_SQRT3 1.73205080756887719000
#define M_IVLN10 0.43429448190325182765 /* 1 / log(10) */ #define M_IVLN10 0.43429448190325182765 /* 1 / log(10) */
#define M_LOG2_E _M_LOG2_E #define M_LOG2_E _M_LN2
#define M_INVLN2 1.4426950408889633870E0 /* 1 / log(2) */ #define M_INVLN2 1.4426950408889633870E0 /* 1 / log(2) */
/* Global control over fdlibm error handling. */ /* Global control over fdlibm error handling. */