xref: /openbsd-src/lib/libm/arch/hppa/e_sqrtf.c (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
1 /*	$OpenBSD: e_sqrtf.c,v 1.6 2016/09/12 19:47:01 guenther Exp $	*/
2 /*
3  * Written by Michael Shalayeff. Public Domain
4  */
5 
6 #include "math.h"
7 
8 float
9 sqrtf(float x)
10 {
11 	__asm__ volatile ("fsqrt,sgl %0, %0" : "+f" (x));
12 	return (x);
13 }
14 DEF_STD(sqrtf);
15