title: Does Android support log2
body: <p>Does android supports log2 ?<br>
  I already find that android doesnt support long double.  </p>
  
  <p>When i tried to compile cdce3.c  I received following error:</p>
  
  <pre><code>g++.dg/cdce3.C: In function 'void mlog2f(int)':
  g++.dg/cdce3.C:87: error: 'log2f' was not declared in this scope
  g++.dg/cdce3.C: In function 'void mlog2(int)':
  g++.dg/cdce3.C:87: error: 'log2' was not declared in this scope
  g++.dg/cdce3.C: In function 'void olog2f(int)':
  g++.dg/cdce3.C:108: error: 'log2f' was not declared in this scope
  g++.dg/cdce3.C: In function 'void olog2(int)':
  g++.dg/cdce3.C:108: error: 'log2' was not declared in this scope
  </code></pre>
  
  <hr>
  
  <p>Part of cdce3.c source code:</p>
  
  <pre><code>#define DEF_MATH_FUNC(prefix, name) NI void prefix##name##f (int x) \
  { \
    float yy = name##f ((float) x); \
    STORE_RESULT; \
  } \
  NI void prefix##name (int x) \
  { \
    double yy = name ((double)x); \
    STORE_RESULT; \
  }
  #endif
  .........
  DEF_MATH_FUNC (m,log2)
  DEF_MATH_FUNC (o,log2)
  </code></pre>
  
  <p>find full <a href="http://code.metager.de/source/xref/NetBSD/src/external/gpl3/gcc/dist/gcc/testsuite/g++.dg/cdce3.C" rel="nofollow">source code</a> here.</p>