summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/math.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-03-18 18:11:18 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-03-18 18:11:18 +0000
commitd57ff5a8acdd5653394aa6b3b688990f486d95d6 (patch)
tree7082101a893df4a65c0b6b6b7e2c15a808c5708f /newlib/libc/include/math.h
parent2db87fe669aa7ff69ddffcea32b9cb38124ae480 (diff)
downloadcygnal-d57ff5a8acdd5653394aa6b3b688990f486d95d6.tar.gz
cygnal-d57ff5a8acdd5653394aa6b3b688990f486d95d6.tar.bz2
cygnal-d57ff5a8acdd5653394aa6b3b688990f486d95d6.zip
2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libm/common/s_log2.c: New file. * libm/common/sf_log2.c: Ditto. * libm/common/Makefile.am: Add s_log2.c and sf_log2.c. * libm/common/Makefile.in: Regenerated. * libc/include/math.h: Add log2 and log2f function prototypes.
Diffstat (limited to 'newlib/libc/include/math.h')
-rw-r--r--newlib/libc/include/math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
index ce7263194..a5b5936ec 100644
--- a/newlib/libc/include/math.h
+++ b/newlib/libc/include/math.h
@@ -250,6 +250,7 @@ extern double gamma _PARAMS((double));
extern double lgamma _PARAMS((double));
extern double erf _PARAMS((double));
extern double erfc _PARAMS((double));
+extern double log2 _PARAMS((double));
#define log2(x) (log (x) / _M_LOG2_E)
#ifndef __math_68881
@@ -328,6 +329,7 @@ extern float gammaf _PARAMS((float));
extern float lgammaf _PARAMS((float));
extern float erff _PARAMS((float));
extern float erfcf _PARAMS((float));
+extern float log2f _PARAMS((float));
#define log2f(x) (logf (x) / (float) _M_LOG2_E)
extern float hypotf _PARAMS((float, float));
#endif /* ! defined (_REENT_ONLY) */