mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
4c49989e41
2002-06-13 Stephen L Moshier <steve@moshier.net> * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which argument or result is subnormal. 2002-06-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the quotient. * sysdeps/i386/fpu/s_remquof.S: Likewise. * sysdeps/i386/fpu/s_remquol.S: Likewise. * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals. * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file. * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file. * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
51 lines
932 B
ArmAsm
51 lines
932 B
ArmAsm
/*
|
|
* Written by Ulrich Drepper <drepper@cygnus.com>.
|
|
* Based on e_remainder by J.T. Conklin <jtc@netbsd.org>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
#include "bp-sym.h"
|
|
#include "bp-asm.h"
|
|
|
|
#define PARMS LINKAGE /* no space for saved regs */
|
|
#define DVDND PARMS
|
|
#define DVSOR DVDND+4
|
|
#define QUOP DVSOR+4
|
|
|
|
.text
|
|
ENTRY (BP_SYM (__remquof))
|
|
ENTER
|
|
|
|
flds DVSOR(%esp)
|
|
flds DVDND(%esp)
|
|
1: fprem1
|
|
fstsw %ax
|
|
sahf
|
|
jp 1b
|
|
fstp %st(1)
|
|
/* Compute the congruent of the quotient. */
|
|
movl %eax, %ecx
|
|
shrl $8, %eax
|
|
shrl $12, %ecx
|
|
andl $4, %ecx
|
|
andl $3, %eax
|
|
orl %eax, %ecx
|
|
leal (%ecx,%ecx,2),%ecx
|
|
movl $0xef2a60, %eax
|
|
shrl %cl, %eax
|
|
andl $7, %eax
|
|
movl QUOP(%esp), %ecx
|
|
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
|
|
movl DVDND(%esp), %edx
|
|
xorl DVSOR(%esp), %edx
|
|
testl $0x80000000, %edx
|
|
jz 1f
|
|
negl %eax
|
|
1: movl %eax, (%ecx)
|
|
|
|
LEAVE
|
|
ret
|
|
END (BP_SYM (__remquof))
|
|
weak_alias (BP_SYM (__remquof), BP_SYM (remquof))
|