diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2017-06-21 10:44:18 +0530 |
---|---|---|
committer | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2017-06-21 10:44:18 +0530 |
commit | 99c3eb0f73f8d111efefa82a40910a75691983c6 (patch) | |
tree | 073c01d3ec8b2f42d6e6f03813fbc8c59983ed72 /sysdeps/powerpc/powerpc64/fpu/s_llrint.S | |
parent | 8082d91e1c449e0cb137468b731004a5e605c8c6 (diff) | |
download | glibc-99c3eb0f73f8d111efefa82a40910a75691983c6.tar.gz |
powerpc: Add optimized version of [l]lrintf
This patch makes use of optimized double version of llrint for single
precision as both the versions return [long] long type.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/fpu/s_llrint.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/fpu/s_llrint.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/fpu/s_llrint.S b/sysdeps/powerpc/powerpc64/fpu/s_llrint.S index 6893285fbb..9fe0b22d18 100644 --- a/sysdeps/powerpc/powerpc64/fpu/s_llrint.S +++ b/sysdeps/powerpc/powerpc64/fpu/s_llrint.S @@ -34,6 +34,13 @@ ENTRY_TOCLESS (__llrint) strong_alias (__llrint, __lrint) weak_alias (__llrint, llrint) weak_alias (__lrint, lrint) +/* The double version also works for single-precision as both float and + double parameters are passed in 64bit FPRs and both versions are expected + to return [long] long type. */ +strong_alias (__llrint, __llrintf) +weak_alias (__llrint, llrintf) +strong_alias (__lrint, __lrintf) +weak_alias (__lrint, lrintf) #ifdef NO_LONG_DOUBLE strong_alias (__llrint, __llrintl) |