[GiNaC-list] Possible size issue in test in numeric.cpp
Pierangelo Masarati
masarati at aero.polimi.it
Thu Aug 17 11:06:25 CEST 2006
Richard B. Kreckel writes:
>> I haven't looked into CLN's CVS yet, though, but this looks like
>> something that shouldn't change quite often.
>
>
> Correct.
Actually, playing with CLN's CVS HEAD I found that cl_value_len is no longer
limited to 32 bits; right now, on my machine, it results into 64 - 3 (the
#if (cl_pointer_size == 64)
#define cl_value_shift 32
#else
#define cl_value_shift (cl_tag_len+cl_tag_shift)
#endif
that was present at least in CLN 1.1.11 has now been turned into
#define cl_value_shift (cl_tag_len+cl_tag_shift)
so
#define cl_value_len (cl_pointer_size - cl_value_shift)
now is 61 instead of 32).
So I'm back to the above warning, i.e. that comparing (int(i) < (1UL << 61))
is always true and so forth.
Cheers, p.
Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano | mailto:pierangelo.masarati at polimi.it
via La Masa 34, 20156 Milano, Italy | http://www.aero.polimi.it/~masarati
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the GiNaC-list
mailing list