Print this page
*** 120,130 ****
#define Inf HUGE_VAL
double
_SVID_libm_err(double x, double y, int type) {
struct exception exc;
! double t, w, ieee_retval;
enum version lib_version = _lib_version;
int iy;
/* force libm_ieee behavior in SUSv3 mode */
if ((__xpg6 & _C99SUSv3_math_errexcept) != 0)
--- 120,130 ----
#define Inf HUGE_VAL
double
_SVID_libm_err(double x, double y, int type) {
struct exception exc;
! double t, w, ieee_retval = 0;
enum version lib_version = _lib_version;
int iy;
/* force libm_ieee behavior in SUSv3 mode */
if ((__xpg6 & _C99SUSv3_math_errexcept) != 0)
*** 854,869 ****
exc.retval = x;
ieee_retval = 1.0;
if (lib_version == strict_ansi) {
exc.retval = 1.0;
} else if (!matherr(&exc)) {
! switch (lib_version) {
! case c_issue_4:
! case ansi_1:
errno = EDOM;
}
- }
break;
case 43:
/* log1p(-1) */
exc.type = SING;
exc.name = "log1p";
--- 854,866 ----
exc.retval = x;
ieee_retval = 1.0;
if (lib_version == strict_ansi) {
exc.retval = 1.0;
} else if (!matherr(&exc)) {
! if ((lib_version == c_issue_4) || (lib_version == ansi_1))
errno = EDOM;
}
break;
case 43:
/* log1p(-1) */
exc.type = SING;
exc.name = "log1p";