mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.4.10
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* @(#) $Revision: 30.1 $
|
||||
* @(#) $Id: alg_config.cal,v 30.1 2007/03/16 11:09:54 chongo Exp $
|
||||
* @(#) $Revision: 30.2 $
|
||||
* @(#) $Id: alg_config.cal,v 30.2 2013/08/11 08:41:38 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/bin/calc/cal/RCS/alg_config.cal,v $
|
||||
*
|
||||
* Under source code control: 2006/06/07 14:10:11
|
||||
@@ -80,7 +80,8 @@ define mul_loop(repeat, x)
|
||||
len = sizeof((*x)[0]) / baseb_bytes;
|
||||
for (i=1; i < 4; ++i) {
|
||||
if ((sizeof((*x)[i]) / baseb_bytes) != len) {
|
||||
quit "mul_loop: 2nd arg matrix elements are not of equal BASEB-bit word length";
|
||||
quit "mul_loop: 2nd arg matrix elements are not of "
|
||||
"equal BASEB-bit word length";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -378,7 +379,8 @@ define best_mul2()
|
||||
}
|
||||
} while (ratio >= 1.0);
|
||||
if (config("user_debug") > 0) {
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search between %d and %d\n",
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search "
|
||||
"between %d and %d\n",
|
||||
low, high);
|
||||
}
|
||||
|
||||
@@ -472,7 +474,8 @@ define sq_loop(repeat, x)
|
||||
len = sizeof((*x)[0]) / baseb_bytes;
|
||||
for (i=1; i < 4; ++i) {
|
||||
if ((sizeof((*x)[i]) / baseb_bytes) != len) {
|
||||
quit "sq_loop: 2nd arg matrix elements are not of equal BASEB-bit word length";
|
||||
quit "sq_loop: 2nd arg matrix elements are not of equal "
|
||||
"BASEB-bit word length";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -769,7 +772,8 @@ define best_sq2()
|
||||
}
|
||||
} while (ratio >= 1.0);
|
||||
if (config("user_debug") > 0) {
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search between %d and %d\n",
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search "
|
||||
"between %d and %d\n",
|
||||
low, high);
|
||||
}
|
||||
|
||||
@@ -866,7 +870,8 @@ define pow_loop(repeat, x, ex)
|
||||
len = sizeof((*x)[0]) / baseb_bytes;
|
||||
for (i=1; i < 4; ++i) {
|
||||
if ((sizeof((*x)[i]) / baseb_bytes) != len) {
|
||||
quit "pow_loop: 2nd arg matrix elements are not of equal BASEB-bit word length";
|
||||
quit "pow_loop: 2nd arg matrix elements are not of "
|
||||
"equal BASEB-bit word length";
|
||||
}
|
||||
}
|
||||
if (!isint(ex) || ex < 3) {
|
||||
@@ -1151,7 +1156,8 @@ define best_pow2()
|
||||
if (config("user_debug") > 1) {
|
||||
printf(" pmod alg1/alg2 ratio = %.3f\n", ratio);
|
||||
if (ratio > 1.0 && ratio <= 1.02) {
|
||||
printf(" while alg1 is slightly better than alg2, it is not clearly better\n");
|
||||
printf(" while alg1 is slightly better than alg2, "
|
||||
"it is not clearly better\n");
|
||||
}
|
||||
}
|
||||
} while (ratio <= 1.02);
|
||||
@@ -1205,8 +1211,8 @@ define best_pow2()
|
||||
looped = 1;
|
||||
} while (ratio >= 1.0);
|
||||
if (config("user_debug") > 0) {
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search between %d and %d\n",
|
||||
low, high);
|
||||
printf("alg1/alg2 ratio now < 1.0, starting binary search "
|
||||
"between %d and %d\n", low, high);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user