Unpopular opinion: i64, int64_t, Int64 and similar types should be named according to their actual meaning, Ring64.

Even better, all programming languages should have a Ring[N] type that provides unit, zero addition and multiplication over a domain of N-bit strings, with the compiler applying proper optimizations when available (and requested).

@Shamar int has nothing to do with any 'ring'. it's a physical data representation. consequent bytes in data segment that can be addressed via data bus. and there's no bits rotation in such structures. if I understand correctly what high level programmers imagine under 'ring'. moreover, signed data has locked sign bit and it's not operated in a special way,
if you need some structures with rotation, you may easily write them yourself. this is not a problem.
Follow

@iron_bug

The endianness and the sign bit are implementation details: the point of my insight (which could be wrong, btw) is that the working of fixed width integer types is that of a ring of bit sequences of such widyh, not that of N or Z (that's what people would expect from something called "integer").

en.m.wikipedia.org/wiki/Ring_(

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.