/[gcl]/gcl/binutils/libiberty/copysign.c
ViewVC logotype

Diff of /gcl/binutils/libiberty/copysign.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by camm, Fri Aug 9 05:36:25 2002 UTC revision 1.1.1.1.20.1 by camm, Fri Sep 30 02:10:43 2005 UTC
# Line 131  typedef union Line 131  typedef union
131    
132  #if defined(__IEEE_BIG_ENDIAN) || defined(__IEEE_LITTLE_ENDIAN)  #if defined(__IEEE_BIG_ENDIAN) || defined(__IEEE_LITTLE_ENDIAN)
133    
134  double DEFUN(copysign, (x, y), double x AND double y)  double
135    copysign (x, y)
136         double x, y;
137  {  {
138    __ieee_double_shape_type a,b;    __ieee_double_shape_type a,b;
139    b.value = y;      b.value = y;  
# Line 142  double DEFUN(copysign, (x, y), double x Line 144  double DEFUN(copysign, (x, y), double x
144    
145  #else  #else
146    
147  double DEFUN(copysign, (x, y), double x AND double y)  double
148    copysign (x, y)
149         double x, y;
150  {  {
151    if ((x < 0 && y > 0) || (x > 0 && y < 0))    if ((x < 0 && y > 0) || (x > 0 && y < 0))
152      return -x;      return -x;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.20.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26