Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libm / arch / i387 / e_sqrt.S
blobc6c21f6d73c241bf4d0c530fd4eea2e94a094e68
1 /*
2  * Written by J.T. Conklin <jtc@NetBSD.org>.
3  * Public domain.
4  */
6 #include <machine/asm.h>
8 RCSID("$NetBSD: e_sqrt.S,v 1.5 2001/06/19 00:26:30 fvdl Exp $")
10 ENTRY(__ieee754_sqrt)
11 #ifdef __i386__
12         fldl    4(%esp)
13         fsqrt
14 #else
15         sqrtsd  %xmm0,%xmm0
16 #endif
17         ret