jx = __HI(x);
u.d = x; jx = __HI(u);
	double fd_tanh(double x)#else	double fd_tanh(x)	double x;#endif{	double t,z;	int jx,ix;    /* High word of |x|. */	jx = __HI(x);	ix = jx&0x7fffffff;    /* x is INF or NaN */	if(ix>=0x7ff00000) { 	    if (jx>=0) return one/x+one;    /* tanh(+-inf)=+-1 */	    else       return one/x-one;    /* tanh(NaN) = NaN */	}    /* |x| < 22 */	if (ix < 0x40360000) {		/* |x|<22 */	    if (ix<0x3c800000) 		/* |x|<2**-55 */		return x*(one+x);    	/* tanh(small) = small */	    if (ix>=0x3ff00000) {	/* |x|>=1  */		t = fd_expm1(two*fd_fabs(x));		z = one - two/(t+two);	    } else {	        t = fd_expm1(-two*fd_fabs(x));	        z= -t/(t+two);	    }    /* |x| > 22, return +-1 */	} else {	    z = one - tiny;		/* raised inexact flag */	}	return (jx>=0)? z: -z;}