Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/copysign.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    130130#endif
    131131
     132#if defined(__IEEE_BIG_ENDIAN) || defined(__IEEE_LITTLE_ENDIAN)
    132133
    133 double DEFUN(copysign, (x, y), double x AND double y)
     134double
     135copysign (x, y)
     136     double x, y;
    134137{
    135138  __ieee_double_shape_type a,b;
     
    139142  return a.value;
    140143}
     144
     145#else
     146
     147double
     148copysign (x, y)
     149     double x, y;
     150{
     151  if ((x < 0 && y > 0) || (x > 0 && y < 0))
     152    return -x;
     153  return x;
     154}
     155
     156#endif
Note: See TracChangeset for help on using the changeset viewer.