diff options
Diffstat (limited to 'sysdeps/aarch64/fpu/s_llrint.c')
-rw-r--r-- | sysdeps/aarch64/fpu/s_llrint.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sysdeps/aarch64/fpu/s_llrint.c b/sysdeps/aarch64/fpu/s_llrint.c index 57821c02f8..f0e0b09b52 100644 --- a/sysdeps/aarch64/fpu/s_llrint.c +++ b/sysdeps/aarch64/fpu/s_llrint.c @@ -16,7 +16,19 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define FUNC llrint -#define OTYPE long long int -#define OREG_SIZE 64 -#include <s_lrint.c> +#include <math.h> +#include <math_private.h> + +long long int +__llrint (double x) +{ + double r = __builtin_rint (x); + + /* Prevent gcc from calling llrint directly when compiled with + -fno-math-errno by inserting a barrier. */ + + math_opt_barrier (r); + return r; +} + +weak_alias (__llrint, llrint) |