7 Feb 2005 23:41
Re: PRIll?
Stephane Fillod <f8cfe <at> free.fr>
2005-02-07 22:41:39 GMT
2005-02-07 22:41:39 GMT
On Thu, Jan 27, 2005 at 03:59:37AM -0800, Nate Bargmann wrote: > A few days ago Stephane uploaded a series of patches > to transition away from lld/lli and inserted PRIfreq > in its place. I noticed that the last occurance in > each file the substitution became PRIll rather than > PRIfreq. I have a computer issue that prevents me > from compiling right now (I removed a noisy fan from > my northbridge and now the machine locks up on > compilation). > > I didn't find PRIll defined in rig.h, so before I > upload a series of untested patches I want to make the > list aware of this discrepancy. PRIll is defined in src/misc.h, and apply to 64bit ints, and is only for internal use (not part of exported API). PRIfreq is defined in rig.h, and pertain to the freq_t type, which is actually a double float. Rem: we cannot use the freq typing everywhere because of the rounding "feature" of *printf formating. So basically in frontend/backends, use PRIfreq for debugging or formating with real precision, and use PRIll (along with appropriate type casting) to format a huge integer number. 73, Stephane - F8CFE(Continue reading)
RSS Feed