FreeBSD and NetBSD both use derivates of Sun's math library. On FreeBSD,
[dragonfly.git] / lib / libm / arch / i386 / e_sqrt.S
1 /*
2  * Written by J.T. Conklin <jtc@NetBSD.org>.
3  * Public domain.
4  *
5  * $NetBSD: e_sqrt.S,v 1.6 2003/07/26 19:25:00 salo Exp $
6  * $DragonFly: src/lib/libm/arch/i386/e_sqrt.S,v 1.1 2005/07/26 21:15:19 joerg Exp $
7  */
8
9 #include <machine/asm.h>
10
11 ENTRY(sqrt)
12 #ifdef __i386__
13         fldl    4(%esp)
14         fsqrt
15 #else
16         sqrtsd  %xmm0,%xmm0
17 #endif
18         ret