1 /*
2  * (c) 2010 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
3  *     economic rights: Technische Universität Dresden (Germany)
4  * This file is part of TUD:OS and distributed under the terms of the
5  * GNU Lesser General Public License 2.1.
6  * Please see the COPYING-LGPL-2.1 file for details.
7  */
8 /* uclibc has it disabled for some unknown reason, lets put it here */
9 
10 #include <math.h>
11 
log2f(float x)12 float log2f(float x)
13 {
14   return (float)log2((double)x);
15 }
16