* apt-pkg/depcache.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 3 Jun 2010 08:45:58 +0000 (10:45 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 3 Jun 2010 08:45:58 +0000 (10:45 +0200)
commita3c4c81afe25377020470ff71c1362136437397c
tree160f5828b1e5ea93062a656f7162716c596f3298
parent81305a0b30cc12aa6d32081bbdcf930907ecfbbe
* apt-pkg/depcache.cc:
  - switch i{Download,Usr}Size from double to (un)signed long long

The biggest reason is that this saves a lot of float point operations
we do in AddSizes() on integers. The only reason i see that this was
a double is that it was 64bit long and can therefore store bigger
values than int/long, but with the availablity of (un)signed long long
we are now also at 64bit and can store sizes more than 8 Exabytes big -
by the time this will be a limit the C/C++ Standard will have bigger types,
hopefully.
apt-pkg/acquire.cc
apt-pkg/acquire.h
apt-pkg/depcache.h
debian/changelog