xref: /openbsd/lib/libm/arch/hppa/e_sqrt.c (revision 2f2c0062)
1 /*	$OpenBSD: e_sqrt.c,v 1.12 2016/09/12 19:47:01 guenther Exp $	*/
2 /*
3  * Written by Michael Shalayeff. Public Domain
4  */
5 
6 #include <float.h>
7 #include <math.h>
8 
9 double
sqrt(double x)10 sqrt(double x)
11 {
12 	__asm__ volatile ("fsqrt,dbl %0, %0" : "+f" (x));
13 	return (x);
14 }
15 DEF_STD(sqrt);
16 LDBL_CLONE(sqrt);
17