glibc/sysdeps/powerpc/fpu/math-use-builtins-sqrt.h
Adhemerval Zanella 169ea8f928 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.
2020-06-22 11:09:49 -03:00

10 lines
205 B
C

#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