mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 00:00:06 +00:00
9e25f6e29b
Wrap extern symbols in BP_SYM (). * sysdeps/i386/fpu/s_frexpf.S: Likewise. * sysdeps/i386/fpu/s_frexpl.S: Likewise. * sysdeps/i386/fpu/s_remquo.S: Likewise. * sysdeps/i386/fpu/s_remquof.S: Likewise. * sysdeps/i386/fpu/s_remquol.S: Likewise. * sysdeps/i386/fpu/s_sincos.S: Likewise. * sysdeps/i386/fpu/s_sincosf.S: Likewise. * sysdeps/i386/fpu/s_sincosl.S: Likewise. * sysdeps/unix/sysv/linux/i386/clone.S: Likewise. * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
50 lines
909 B
ArmAsm
50 lines
909 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+12
|
|
#define QUOP DVSOR+12
|
|
|
|
.text
|
|
ENTRY (BP_SYM (__remquol))
|
|
ENTER
|
|
|
|
fldt DVSOR(%esp)
|
|
fldt 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
|
|
movl $0xef2960, %eax
|
|
shrl %cl, %eax
|
|
andl $3, %eax
|
|
movl QUOP(%esp), %ecx
|
|
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
|
|
movl DVDND+8(%esp), %edx
|
|
xorl DVSOR+8(%esp), %edx
|
|
testl $0x8000, %edx
|
|
jz 1f
|
|
negl %eax
|
|
1: movl %eax, (%ecx)
|
|
|
|
LEAVE
|
|
ret
|
|
END (BP_SYM (__remquol))
|
|
weak_alias (BP_SYM (__remquol), BP_SYM (remquol))
|