Stephane Fillod | 7 Feb 2005 23:41
Picon
Favicon

Re: PRIll?

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

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

Gmane