CVS: strange test failures on FreeBSD - ideas sought
David Relson
relson at osagesoftware.com
Wed Sep 24 02:01:14 CEST 2003
Matthias,
As an experiment, I coded the function below to see what
fis_get_spamicity() would do with the 2 different P values. With both
gsl and dcdflib, the output is "0.0000000000003129 0.0000000000003129
0.0000000000000000". So, on Linux the difference in P values is
irrelevant.
static void test_prbf(void)
{
FLOAT P, Q;
size_t robn = 26;
double s_l, s_f;
/* LINUX */
P.mant = 0.015336472898994948; P.exp =0;
Q.mant = 3.7461709350412732e-61; Q.exp = 0;
s_l = fis_get_spamicity(robn,P,Q);
/* FREEBSD */
robn = 26;
P.mant = 0.015336472898994943; P.exp =0;
Q.mant = 3.7461709350412753e-61; Q.exp = 0;
s_f = fis_get_spamicity(robn,P,Q);
printf( "%0.16f %0.16f %0.16f\n", s_l, s_f, s_l - s_f );
exit(0);
}
More information about the bogofilter-dev
mailing list