mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-17 10:30:20 +00:00
0a54e4010f
1997-07-26 04:14 Ulrich Drepper <drepper@cygnus.com> * elf/Makefile (distribute): Add genrtldtbl.awk. (before-compile): Add rtldtbl.h. (GAWK): New variable. (generated): Add trusted-dirs.h and rtldtbl.h. ($(objpfx)rtldtbl.h): New rule. File is needed by dl-load.c. * elf/dl-load.c: Rewrite. Now use cache and look for shared objects in machine dependent directories. * elf/dl-object.c (_dl_new_object): Initialize l_rpath_dirs member. * elf/dl-support.c: Rename function to non_dynamic_init and add initialization for _dl_platform, _dl_platformlen, _dl_pagesize and call to initializer for search path. * elf/elf.h: Add AT_PLATFORM and AT_HWCAP. * elf/genrtldtbl.awk: New file. * elf/link.h: Add type definitions and declarations for search path cache. * elf/rtld.c: Add definitions of variables used for search path cache. * sysdeps/generic/dl-sysdep.c: Let auxiliary vector initialize _dl_platform. Initialize _dl_pagesize early and use this value. * sysdeps/i386/dl-machine.h: Add code for _dl_platform handling. * sysdeps/mach/hurd/dl-sysdep.c: Initialize _dl_pagesize. * sysdeps/unix/sysv/linux/dl-sysdep.c: Use _dl_pagesize instead of calling getpagesize. * elf/dl-error.c (_dl_signal_error): Make message nicer. * nss/libnss_files.map: Fix typo. Reported by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>. * sysdeps/generic/strsep.c: Optimize case where separator set contains only one character. * sysdeps/libm-ieee754/s_ccosh.c: Correct sign of result for real == +-Inf. * sysdeps/libm-ieee754/s_ccoshf.c: Likewise. * sysdeps/libm-ieee754/s_ccoshl.c: Likewise. 1997-07-25 09:15 H.J. Lu <hjl@gnu.ai.mit.edu> * sysdeps/sparc/udiv_qrnnd.S: Check PIC instead of __PIC__. * sysdeps/unix/sysv/linux/sparc/__sigtrampoline.S: Likewise. * sysdeps/unix/mips/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/mips/clone.S: Likewise. * sysdeps/mips/bsd-_setjmp.S: Remove __PIC__ comment. * sysdeps/mips/bsd-setjmp.S: Likewise. * sysdeps/mips/dl-machine.h: Remove extra stuff. * sysdeps/mips/mips64/dl-machine.h: Likewise. 1997-07-25 18:55 Philip Blundell <Philip.Blundell@pobox.com> * sysdeps/standalone/arm/sysdep.c: New file. 1997-07-25 13:25 Philip Blundell <Philip.Blundell@pobox.com> * aout/Makefile: New file. * Makeconfig (binfmt-subdir): Assume a.out when not ELF. * sysdeps/generic/machine-gmon.h: Add warning about limitations of __builtin_return_address(). * sysdeps/arm/machine-gmon.h: New file, use assembly to avoid above problem. 1997-07-25 16:24 H.J. Lu <hjl@gnu.ai.mit.edu> * elf/dl-deps.c (_dl_map_object_deps): Fix a typo. 1997-07-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * math/libm-test.c (ccos_test, ccosh_test): Fix sign in some tests. 1997-07-24 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sunrpc/clnt_udp.c (clntudp_call): Rename cu_wait from timeout to not shadow the variable in the outer scope.
165 lines
3.0 KiB
ArmAsm
165 lines
3.0 KiB
ArmAsm
! SPARC __udiv_qrnnd division support, used from longlong.h.
|
|
|
|
! Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc.
|
|
|
|
! This file is part of the GNU MP Library.
|
|
|
|
! The GNU MP Library is free software; you can redistribute it and/or modify
|
|
! it under the terms of the GNU Library General Public License as published by
|
|
! the Free Software Foundation; either version 2 of the License, or (at your
|
|
! option) any later version.
|
|
|
|
! The GNU MP Library is distributed in the hope that it will be useful, but
|
|
! WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
|
|
! License for more details.
|
|
|
|
! You should have received a copy of the GNU Library General Public License
|
|
! along with the GNU MP Library; see the file COPYING.LIB. If not, write to
|
|
! the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
!
|
|
! Added PIC support - May/96, Miguel de Icaza
|
|
|
|
! INPUT PARAMETERS
|
|
! rem_ptr i0
|
|
! n1 i1
|
|
! n0 i2
|
|
! d i3
|
|
|
|
#include "sysdep.h"
|
|
#undef ret /* Kludge for glibc */
|
|
|
|
.text
|
|
.align 8
|
|
LC0: .double 0r4294967296
|
|
LC1: .double 0r2147483648
|
|
|
|
.align 4
|
|
.global __udiv_qrnnd
|
|
.type __udiv_qrnnd,@function
|
|
ENTRY(__udiv_qrnnd)
|
|
!#PROLOGUE# 0
|
|
save %sp,-104,%sp
|
|
!#PROLOGUE# 1
|
|
st %i1,[%fp-8]
|
|
ld [%fp-8],%f10
|
|
#ifdef PIC
|
|
._XL11:
|
|
call ._XL1
|
|
fitod %f10,%f4
|
|
._XL1:
|
|
sub %o7,(._XL11-LC0),%o7
|
|
ldd [%o7],%f8
|
|
#else
|
|
sethi %hi(LC0),%o7
|
|
fitod %f10,%f4
|
|
ldd [%o7+%lo(LC0)],%f8
|
|
#endif
|
|
cmp %i1,0
|
|
bge L248
|
|
mov %i0,%i5
|
|
faddd %f4,%f8,%f4
|
|
L248:
|
|
st %i2,[%fp-8]
|
|
ld [%fp-8],%f10
|
|
fmuld %f4,%f8,%f6
|
|
cmp %i2,0
|
|
bge L249
|
|
fitod %f10,%f2
|
|
faddd %f2,%f8,%f2
|
|
L249:
|
|
st %i3,[%fp-8]
|
|
faddd %f6,%f2,%f2
|
|
ld [%fp-8],%f10
|
|
cmp %i3,0
|
|
bge L250
|
|
fitod %f10,%f4
|
|
faddd %f4,%f8,%f4
|
|
L250:
|
|
fdivd %f2,%f4,%f2
|
|
#ifdef PIC
|
|
._XL22:
|
|
call ._XL2
|
|
nop
|
|
._XL2:
|
|
sub %o7,(._XL22-LC1),%o7
|
|
ldd [%o7],%f4
|
|
#else
|
|
sethi %hi(LC1),%o7
|
|
ldd [%o7+%lo(LC1)],%f4
|
|
#endif
|
|
fcmped %f2,%f4
|
|
nop
|
|
fbge,a L251
|
|
fsubd %f2,%f4,%f2
|
|
fdtoi %f2,%f2
|
|
st %f2,[%fp-8]
|
|
b L252
|
|
ld [%fp-8],%i4
|
|
L251:
|
|
fdtoi %f2,%f2
|
|
st %f2,[%fp-8]
|
|
ld [%fp-8],%i4
|
|
sethi %hi(-2147483648),%g2
|
|
xor %i4,%g2,%i4
|
|
L252:
|
|
wr %g0,%i4,%y
|
|
sra %i3,31,%g2
|
|
and %i4,%g2,%g2
|
|
andcc %g0,0,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,%i3,%g1
|
|
mulscc %g1,0,%g1
|
|
add %g1,%g2,%i0
|
|
rd %y,%g3
|
|
subcc %i2,%g3,%o7
|
|
subxcc %i1,%i0,%g0
|
|
be L253
|
|
cmp %o7,%i3
|
|
|
|
add %i4,-1,%i0
|
|
add %o7,%i3,%o7
|
|
st %o7,[%i5]
|
|
ret
|
|
restore
|
|
L253:
|
|
blu L246
|
|
mov %i4,%i0
|
|
add %i4,1,%i0
|
|
sub %o7,%i3,%o7
|
|
L246:
|
|
st %o7,[%i5]
|
|
ret
|
|
restore
|