xref: /openbsd/lib/libm/arch/hppa/e_sqrt.c (revision cecf84d4)
1 /*	$OpenBSD: e_sqrt.c,v 1.11 2015/01/20 04:41:01 krw Exp $	*/
2 /*
3  * Written by Michael Shalayeff. Public Domain
4  */
5 
6 #include <float.h>
7 #include <math.h>
8 
9 double
10 sqrt(double x)
11 {
12 	__asm__ volatile ("fsqrt,dbl %0, %0" : "+f" (x));
13 	return (x);
14 }
15 
16 __strong_alias(sqrtl, sqrt);
17