2016

>2016
>64-bit system
>int is still 32 bits

>current year
>work computer is still 32-bit
>not being replaced anytime soon

>work

see? Nobody got time for your autism

>not using unsigned 64bit ints

what are you? a retard?

>wasting memory
I bet you don't free your malloc's either

i dont even know what malloc is

...

Shit mane I just had to save that parrot

>2016
>filename character limit is still defined by unsigned 8-bit int

Name a situation (other than addressing memory) where you need an integer larger than 4,294,967,296. The 64-bit thing is all about memory addressing (i.e., pointers), because you might notice that 32-bit limit is about 4 GB, so 32-bit pointers can only address 4 GB of memory.

That feel when my company is swapping to only 64 bit applications. Feels good brah.

>2016
>Op is now in college studying cs

...

If you want to store 33 or more booleans in 1 integer. (And boolean type is so retarded it still gets stored as 32 bit int.)

> 2016
> not running on the superior 36-bit mainframe
Don't fall for the microcomputer jew!

what the fuck kind of language you talking?

that's a cute cock.

>2016
>buy new system
>errors when compiling

int64_t

A boolean takes up 1 byte, not 4.

This really isn't that hard to understand if you're not a keyboard monkey, maybe you should reconsider your education if you found what he said to be incomprehensible

padding for alignment may turn it into a 4, anyhow his point still stands.

make a struct with bitwise booleans then

All languages should have named types like this:

int8
int16
int32
int64

or like this:

byte
word
dword
qword.

Any other naming is pure cancer. Only a Pajeet programmer would find this too complicated.

timestamp

That's what I like on C2. Sadly, almost no one knows about that language

>bragging about the bullshit you have to do in C that other languages heavily discourage

Can't wait until Go and Rust completely eliminate the need for C

>>>/read the fucking book, faggot/

I wish there were standard typedefs like this that everyone used. Or, at the very least, everyone used the standard C type names for their needs.

>automatic memory management
haha, never

If you're doing that, you don't gain anything over using multiple ints. Hell, use a struct of ints, because you're going to want to write accessor macros anyway.

That's a reasonable answer, though it's so isolated that you also don't lose anything using a bigint sort of struct.

yo what

Project Euler's retarded numbers.

I'm pretty sure most of those problems are set up to overflow 64-bit integers as well, but I haven't done them in a while. So yes that is an answer for "why would you need more than 32 bits?" but it fails to address the spirit of the question, which is, "why would you need 64-bit ints over 32-bit, other than pointers?"
So far timestamps are the main good answer, but if push comes to shove they can easily have a specialized type.

Financial applications, if you want to calculate Bill Gates wealth or a big company's revenue or something.

World of Warcraft did a stat squish after the 4th expansion because boss healths were approaching the maximum size of a 32-bit integer. As a workaround they were designing fights with phases where the boss's health would go back up to 100%. We would all be doing xXx_EpIc_xXx 1 million DPS right now if they used 64-bit integers.

Financial applications, ideally, should use high-precision fixed-point rational numbers. Or if you're Pajeet you'll use doubles, which are 64-bit anyway.

At the risk of being ridiculed, gotta ask.
How do you achieve numbers beyond 4 billion using 32 bits? I know that there's struts designed for this purpose, but what mathematical trickery do they use to work? Are the algorithms they use as efficient as having the CPU process 64 bits natively?

t. Basiq college C program nigga

people like you belong to the garbage collector

You can trade accuracy for range, which is how floating-point numbers work. So you can map multiple numbers to a single bit pattern, which means if you have that bit pattern you can't tell which of those numbers you started with. In other words, you can't represent more than four-ish billion numbers with 32 bits, but you can change which four billion numbers are representable.

>2016
>64-bit system
>Address space is actually only 48 bits long
What kind of fuckery is that, I ask you.

most likely gonna be aligned at 64bit word and unpacked anyway

you know that the result of a multiplication will never be longer than the sum of the bit lengths of the two factors, so you can bound them--you know how much memory at most will be needed ahead of time. the sum of two numbers will similarly never be longer than one digit more than the largest of them. summation and multiplication are done the same way you would do them on paper, by divide & conquer treating each machine word part as its own "digit" conceptually, and taking into account carry.

>Name a situation where you need an integer larger than 3758096384

What is VRAM even used for? Storing textures?

kek

Yes, and buffering frames, doing multi sampling and storing calculation data for effects and physics.

>2016
>Not using *int_least**_t (uint_least64_t, etc.)