diff options
Diffstat (limited to 'sysdeps/powerpc/fpu/math_private.h')
-rw-r--r-- | sysdeps/powerpc/fpu/math_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h index 3c71275392..d8fd4923ac 100644 --- a/sysdeps/powerpc/fpu/math_private.h +++ b/sysdeps/powerpc/fpu/math_private.h @@ -25,6 +25,16 @@ #include <fenv_private.h> #include_next <math_private.h> +#if defined _ARCH_PWR9 && __HAVE_DISTINCT_FLOAT128 +extern __always_inline _Float128 +__ieee754_sqrtf128 (_Float128 __x) +{ + _Float128 __z; + asm ("xssqrtqp %0,%1" : "=wq" (__z) : "wq" (__x)); + return __z; +} +#endif + extern double __slow_ieee754_sqrt (double); extern __always_inline double __ieee754_sqrt (double __x) |