Lines Matching +full:low +full:- +full:precision
1 // SPDX-License-Identifier: GPL-2.0+
5 /* 128-bit long double support routines for Darwin.
13 * Implementations of floating-point long double basic arithmetic
17 * Double-double algorithms are based on the paper "Doubled-Precision
18 * IEEE Standard 754 Floating-Point Arithmetic" by W. Kahan, February 26,
20 * Doubled-Precision Floating-Point Computations", by Seppo Linnainmaa,
21 * ACM TOMS vol 7 no 3, September 1981, pages 272-283.
30 * -0.0. No other requirements are made; so, for example, 1.0 may be
31 * represented as (1.0, +0.0) or (1.0, -0.0), and the low part of a
32 * NaN is don't-care.
34 * This code currently assumes big-endian.
63 x.dval[1] = a - z + c + zz; in __gcc_qadd()
65 x.dval[1] = c - z + a + zz; in __gcc_qadd()
67 q = a - z; in __gcc_qadd()
68 zz = q + c + (a - (q + z)) + aa + cc; in __gcc_qadd()
70 /* Keep -0 result. */ in __gcc_qadd()
79 x.dval[1] = z - xh + zz; in __gcc_qadd()
86 return __gcc_qadd(a, b, -c, -d); in __gcc_qsub()
96 if (unlikely(t == 0) /* Preserve -0. */ in __gcc_qmul()
102 /* Use fused multiply-add to get low part of a * c. */ in __gcc_qmul()
110 tau += v + w; /* Add in other second-order terms. */ in __gcc_qmul()
117 z.dval[1] = (t - u) + tau; in __gcc_qmul()