~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* sqrt function.  PowerPC32 version.
2
 
   Copyright (C) 2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007, 2011 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
5
5
   The GNU C Library is free software; you can redistribute it and/or
35
35
   This part of the function looks like a leaf routine,  so no need to
36
36
   stack a frame or execute prologue/epilogue code. It is safe to
37
37
   branch directly to w_sqrt as long as the input value (f1) is
38
 
   preserved. Putting the the sqrt result into f2 (float parameter 2)
 
38
   preserved. Putting the sqrt result into f2 (float parameter 2)
39
39
   allows passing both the input value and sqrt result into the extended
40
40
   wrapper so there is no need to recompute.
41
41
   
63
63
        cfi_offset(lr,20-16)
64
64
        cfi_offset(r30,8-16)
65
65
#ifdef SHARED
66
 
        bcl     20,31,.LCF1
67
 
.LCF1:
68
 
        mflr    r30
69
 
        addis   r30,r30,_GLOBAL_OFFSET_TABLE_-.LCF1@ha
70
 
        addi    r30,r30,_GLOBAL_OFFSET_TABLE_-.LCF1@l
 
66
        SETUP_GOT_ACCESS(r30,got_label)
 
67
        addis   r30,r30,_GLOBAL_OFFSET_TABLE_-got_label@ha
 
68
        addi    r30,r30,_GLOBAL_OFFSET_TABLE_-got_label@l
71
69
        lwz     r9,_LIB_VERSION@got(30)
72
70
        lwz     r0,0(r9)
73
71
#else