• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to calculate ?

life24

Senior member
Hello,
How to calculated ?
7rd3rpvetv84.jpg

Thanks
 
In binary 32 bits gives you 4,294,967,296 possible combinations (or numbers in base 10). However, using the rule of 2's Complement for signed integers this gives us 2,147,483,647 possible positive combinations, which is basically equal to to 2GB (technically 1.999999999GB).
 
Last edited:
The 2 GB limit reflects the maximum file size which may be worked on by a 32 bit operating system and was not necessarily a limit of the Photoshop PSD file format.

To accommodate larger files they introduced the Photoshop PSB file format which may be up to 4 Exabytes (4 million TB). However the image is limited to a more practical 300,000 x 300,000 pixels.

This is done in the PSB file format by changing a number of the internal variables from 4 byte values (32 bits) to 8 byte values (64 bits) thereby allowing larger dimensions for layers and masks.

If you are interested, take a look at the file format specification. Search for instances of PSB to see which variables are changed.

https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
 
Hi,
2^32 bit = 4294967296 bit ( /8 ) = 536870912 Byte (/1024) KByte = 524288 (/1024) = 512 MByte
How about two gigabytes calculated?
 
Hi,
2^32 bit = 4294967296 bit ( /8 ) = 536870912 Byte (/1024) KByte = 524288 (/1024) = 512 MByte
How about two gigabytes calculated?
You don't need to convert from bits to bytes. Each bit can hold a value, and each value can access a byte. Computers fetch data on the hard drive one byte (8-bits) at a time, so 0 fetches bit 0-7, 1 fetches bit 8-15. If memory addresses are stored in 32-bit unsigned, accessing 8-bits per number means that a 32-bit number can access 2^32 bytes (2^40 bits).
 
Isn't the file pointer typically defined to be an integer? In that case the first bit would be the sign, leaving 2^31 bits to address the space (2GB). I'm not sure why an unsigned integer wasn't used.
 
I'm not sure why an unsigned integer wasn't used.

At the time when adobe was designing the psd file format most PCs had a few megs of RAM and maybe a few dozen megs of hard drive space. Files larger than 2 GB were such an outlier that they weren't even worth considering. In fact I would be rather shocked if the original psd spec circa ~1990 supported 2 GB files. Most likely they expanded it over the years, but for whatever reason pushing support past 2 GB required enough changes that they decided to branch to a different file type for it.
 
Back
Top