1 /* 2 * Written by Michael Shalayeff. Public Domain 3 */ 4 5 #if defined(LIBM_SCCS) && !defined(lint) 6 static char rcsid[] = "$OpenBSD: e_sqrtf.c,v 1.2 2008/09/07 20:36:08 martynas Exp $"; 7 #endif 8 9 #include "math.h" 10 11 float 12 sqrtf(float x) 13 { 14 __asm__ __volatile__ ("fsqrt,sgl %0, %0" : "+f" (x)); 15 return (x); 16 } 17