update for HEAD-2003021201
[reactos.git] / lib / crtdll / math / sqrt.c
index a17cec1..d414fcd 100644 (file)
    License along with the GNU C Library; see the file COPYING.LIB.  If not,
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
-
+#include <msvcrt/math.h>
 
 double sqrt (double __x);
 
 double sqrt (double __x)
 {
   register double __value;
+#ifdef __GNUC__
   __asm __volatile__
     ("fsqrt"
      : "=t" (__value) : "0" (__x));
-
+#else
+  __value = linkme_sqrt(__x);
+#endif /*__GNUC__*/
   return __value;
 }