#if 0 # define TGSOURCE "tanh.c" #include #include #include "_tgmath.h" /** hyperbolic tangent **/ TYPE TGFN(tanh)(TYPE x) { switch (fpclassify(x)) { case FP_ZERO: return x; case FP_INFINITE: return signbit(x) ? -1.0 : 1.0; default: break; } if (0) { errno = ERANGE; /* The result cannot be represented */ /* RETURN_FAILURE(CONSTANT(HUGE_VAL), A range error occurred); */ return TGHUGE; } /* RETURN_SUCCESS(the hyperbolic tangent of ARGUMENT(x)); */ return x; } /*** compute the hyperbolic tangent of ARGUMENT(x). ***/ /* IMPLEMENTATION(The value returned on a domain error, CONSTANT(HUGE_VAL)) LINK(m) STDC(1) */ #endif