1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Make the order of operations explicit for the error term of Dekker

double-precision multiply.

FossilOrigin-Name: 28f57b34e6b11184a36e363a985e7531bddd7be48a5e039a670e5acf748eedda
This commit is contained in:
drh
2023-07-05 15:34:30 +00:00
parent 1790ccb98b
commit 85ca6d7ace
3 changed files with 9 additions and 8 deletions

View File

@@ -409,7 +409,8 @@ static void dekkerMul2(double *x, double y, double yy){
cc = p - c + q + tx*ty;
cc = x[0]*yy + x[1]*y + cc;
x[0] = c + cc;
x[1] = c - x[0] + cc;
x[1] = c - x[0];
x[1] += cc;
}
/*