Lines Matching refs:X
8 | Input: Double-extended number X in location pointed to
11 | Output: The value cosh(X) returned in floating-point register Fp0.
23 | 1. If |X| > 16380 log2, go to 3.
25 | 2. (|X| <= 16380 log2) Cosh(X) is obtained by the formulae
26 | y = |X|, z = exp(Y), and
27 | cosh(X) = (1/2)*( z + 1/z ).
30 | 3. (|X| > 16380 log2). If |X| > 16480 log2, go to 5.
32 | 4. (16380 log2 < |X| <= 16480 log2)
33 | cosh(X) = sign(X) * exp(|X|)/2.
34 | However, invoking exp(|X|) may cause premature overflow.
35 | Thus, we calculate sinh(X) as follows:
36 | Y := |X|
42 | 5. (|X| > 16480 log2) sinh(X) must overflow. Return
70 |--COSH(X) = 1 FOR DENORMALIZED X
88 |--THIS IS THE USUAL CASE, |X| < 16380 LOG2
89 |--COSH(X) = (1/2) * ( EXP(X) + 1/EXP(X) )
91 fabsx %fp0 | ...|X|
96 bsr setox | ...FP0 IS EXP(|X|)
97 fmuls #0x3F000000,%fp0 | ...(1/2)EXP(|X|)
101 fdivx %fp0,%fp1 | ...1/(2 EXP(|X|))
113 fsubd T1(%pc),%fp0 | ...(|X|-16381LOG2_LEAD)
114 fsubd T2(%pc),%fp0 | ...|X| - 16381 LOG2, ACCURATE