From 169ea8f928fc04a2824f67b2f69b6355a00153b2 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 4 Jun 2020 22:47:16 +0300 Subject: powerpc: Use sqrt{f} builtin The powerpc sqrt implementation is also simplified: - the static constants are open coded within the implementation. - for !USE_SQRT_BUILTIN the function is implemented directly on __ieee754_sqrt (it avoid an superflous extra jump). Checked on powerpc-linux-gnu and powerpc64le-linux-gnu. --- sysdeps/powerpc/fpu/math-use-builtins-sqrt.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sysdeps/powerpc/fpu/math-use-builtins-sqrt.h (limited to 'sysdeps/powerpc/fpu/math-use-builtins-sqrt.h') diff --git a/sysdeps/powerpc/fpu/math-use-builtins-sqrt.h b/sysdeps/powerpc/fpu/math-use-builtins-sqrt.h new file mode 100644 index 0000000000..653309a7e7 --- /dev/null +++ b/sysdeps/powerpc/fpu/math-use-builtins-sqrt.h @@ -0,0 +1,9 @@ +#ifdef _ARCH_PPCSQ +# define USE_SQRT_BUILTIN 1 +# define USE_SQRTF_BUILTIN 1 +#else +# define USE_SQRT_BUILTIN 0 +# define USE_SQRTF_BUILTIN 0 +#endif +#define USE_SQRTL_BUILTIN 0 +#define USE_SQRTF128_BUILTIN 0 -- cgit 1.4.1