diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-06 10:24:41 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-06 10:24:41 +0000 |
commit | d25d39b7ef9440165a077fe1367b7d662022397c (patch) | |
tree | 4341cc595cf083462655825e7ad7605e5b24976e /libm/w_log2.c | |
parent | aa3f8de438bc2ca1fca7684cc75e5cd0a5386d57 (diff) |
- implement log2()
Diffstat (limited to 'libm/w_log2.c')
-rw-r--r-- | libm/w_log2.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libm/w_log2.c b/libm/w_log2.c new file mode 100644 index 000000000..ec274f761 --- /dev/null +++ b/libm/w_log2.c @@ -0,0 +1,14 @@ +/* vi: set sw=4 ts=4: */ +/* + * Copyright (C) 2008 by Bernhard Reutner-Fischer <uclibc@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ +#include <math.h> +#include "math_private.h" + +double log2 (double d) +{ + return __ieee754_log2 (d); +} +libm_hidden_def(log2) |