Blame sysdeps/powerpc/powerpc64/fpu/s_llrint.S

Packit Service 82fcde
/* Round double to long int.  PowerPC64 version.
Packit Service 82fcde
   Copyright (C) 2004-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#include <sysdep.h>
Packit Service 82fcde
#include <math_ldbl_opt.h>
Packit Service 82fcde
#include <libm-alias-float.h>
Packit Service 82fcde
#include <libm-alias-double.h>
Packit Service 82fcde
Packit Service 82fcde
/* long long int[r3] __llrint (double x[fp1])  */
Packit Service 82fcde
ENTRY_TOCLESS (__llrint)
Packit Service 82fcde
	CALL_MCOUNT 0
Packit Service 82fcde
	fctid	fp13,fp1
Packit Service 82fcde
	stfd	fp13,-16(r1)
Packit Service 82fcde
	nop	/* Insure the following load is in a different dispatch group */
Packit Service 82fcde
	nop	/* to avoid pipe stall on POWER4&5.  */
Packit Service 82fcde
	nop
Packit Service 82fcde
	ld	r3,-16(r1)
Packit Service 82fcde
	blr
Packit Service 82fcde
	END (__llrint)
Packit Service 82fcde
Packit Service 82fcde
strong_alias (__llrint, __lrint)
Packit Service 82fcde
libm_alias_double (__llrint, llrint)
Packit Service 82fcde
libm_alias_double (__lrint, lrint)
Packit Service 82fcde
/* The double version also works for single-precision as both float and
Packit Service 82fcde
   double parameters are passed in 64bit FPRs and both versions are expected
Packit Service 82fcde
   to return [long] long type.  */
Packit Service 82fcde
strong_alias (__llrint, __llrintf)
Packit Service 82fcde
libm_alias_float (__llrint, llrint)
Packit Service 82fcde
strong_alias (__lrint, __lrintf)
Packit Service 82fcde
libm_alias_float (__lrint, lrint)