root/lib/libm/arch/hppa/e_sqrt.c
/*      $OpenBSD: e_sqrt.c,v 1.12 2016/09/12 19:47:01 guenther Exp $    */
/*
 * Written by Michael Shalayeff. Public Domain
 */

#include <float.h>
#include <math.h>

double
sqrt(double x)
{
        __asm__ volatile ("fsqrt,dbl %0, %0" : "+f" (x));
        return (x);
}
DEF_STD(sqrt);
LDBL_CLONE(sqrt);