Back to index

cell-binutils  2.17cvs20070401
Functions
copysign.c File Reference
#include <ansidecl.h>

Go to the source code of this file.

Functions

double copysign (double x, double y)

Function Documentation

double copysign ( double  x,
double  y 
)

Definition at line 147 of file copysign.c.

{
  if ((x < 0 && y > 0) || (x > 0 && y < 0))
    return -x;
  return x;
}