# HG changeset patch # User John W. Eaton # Date 1325856442 18000 # Node ID e8bad0dc263c95d09dbb6a0a2a6b68cfec67efee # Parent 87f06b9990bbc6bc583df47f854f4df22d1fd082 quadcc: use gnulib::copysign * quadcc.cc: Don't provide definition of coypsign. (Fquadcc): Use gnulib::copysign. diff -r 87f06b9990bb -r e8bad0dc263c src/DLD-FUNCTIONS/quadcc.cc --- a/src/DLD-FUNCTIONS/quadcc.cc Thu Jan 05 17:34:30 2012 -0500 +++ b/src/DLD-FUNCTIONS/quadcc.cc Fri Jan 06 08:27:22 2012 -0500 @@ -31,11 +31,6 @@ #include "parse.h" #include "ov-fcn-handle.h" -#if ! defined (HAVE_COPYSIGN) && defined (HAVE__COPYSIGN) -#define copysign _copysign -#define HAVE_COPYSIGN 1 -#endif - /* Define the size of the interval heap. */ #define cquad_heapsize 200 @@ -1655,7 +1650,7 @@ wrap = true; for (i = 0; i <= nivals; i++) if (xisinf (iivals[i])) - iivals[i] = copysign (1.0, iivals[i]); + iivals[i] = gnulib::copysign (1.0, iivals[i]); else iivals[i] = 2.0 * atan (iivals[i]) / M_PI; } @@ -2020,7 +2015,7 @@ && ivl->c[0] / iv->c[0] > 2); if (ivl->ndiv > ndiv_max && 2 * ivl->ndiv > ivl->rdepth) { - igral = copysign (octave_Inf, igral); + igral = gnulib::copysign (octave_Inf, igral); warning ("quadcc: divergent integral detected"); break; } @@ -2116,7 +2111,7 @@ && ivr->c[0] / iv->c[0] > 2); if (ivr->ndiv > ndiv_max && 2 * ivr->ndiv > ivr->rdepth) { - igral = copysign (octave_Inf, igral); + igral = gnulib::copysign (octave_Inf, igral); warning ("quadcc: divergent integral detected"); break; }