branch update for HEAD-2003021201
[reactos.git] / lib / crtdll / math / log10.c
index b57b1a5..58e8cd6 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <msvcrt/math.h>
 
 double log10 (double __x);
 
 double log10 (double __x)
 {
   register double __value;
+#ifdef __GNUC__
   __asm __volatile__
     ("fldlg2\n\t"
      "fxch\n\t"
      "fyl2x"
      : "=t" (__value) : "0" (__x));
-
+#else
+  __value = linkme_log10(__x);
+#endif /*__GNUC__*/
   return __value;
 }