← Back to team overview

kicad-developers team mailing list archive

Re: Fwd: remarks about the internal nanometer resolution

 

Wayne,

In 'C' long long's are 64-bit on 32-bit architectures; however,
and unfortunately, long long is only part of the 'C' standard
and not part of the 'C++' standard.

i.e. in stdint.h you find

 typedef long long int64_t;
 typedef unsinged long long u_int64_4;

but stdint.h is a 'C' header file and not a C++ header file.

-brian

On Tue, 10 Apr 2012, Wayne Stambaugh wrote:

> On 4/10/2012 4:41 PM, Brian F. G. Bidulock wrote:
> > Wayne,
> > 
> > On Tue, 10 Apr 2012, Wayne Stambaugh wrote:
> >>
> >> On 64-bit builds, integers are 64 bits so it becomes meaningless at that
> >> point.  Even on 32 bit hardware, there are much more pressing issues
> >> that need to be resolved.
> > 
> > On 64-bit architecture int's are 32-bits.  long's are 64-bits.
> > 
> > --brian
> > 
> 
> What do know, I just checked and you are correct.  You learn something
> new every day (if your paying attention).  Interesting that int is 32
> bits on 64 bit architectures.  This is break from the transition from 8,
> 16, and 32 bit architectures where int was the default register size of
> the micro.  I like to use intNN_t from stdint.h when I need a guaranteed
> integer size.  Unfortunately, AFIAK Microsoft doesn't supply stdint.h so
> using intNN_t is not portable between compilers.  I guess we could
> always fall back to wxInt64.
> 
> Wayne
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

-- 
Brian F. G. Bidulock    � The reasonable man adapts himself to the �
bidulock@xxxxxxxxxxx    � world; the unreasonable one persists in  �
http://www.openss7.org/ � trying  to adapt the  world  to himself. �
                        � Therefore  all  progress  depends on the �
                        � unreasonable man. -- George Bernard Shaw �


References