[Issue 24412] No predefined version for 64bit ?!

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 27 11:59:36 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24412

--- Comment #3 from Dennis <dkorpel at live.nl> ---
It usually is, so people tend to use it that way. Are you programming for the
Nintendo 64 perhaps? :)

I'm looking how other languages check for 64-bit registers, and in C, it seems
like people also query sizes of pointer / integer types, or query a specific
ISA (like x86-64): https://stackoverflow.com/a/33867847/8411666

So without precedence, the name could be something like 'D_64bitRegister' or
'D_64bitArithmetic'. But what do you want to do with this information exactly?
Is this to provide your own alternative 64-bit emulation when there's no
'native' 64-bit math?

Because that could be tricky: consider WebAssembly without wasm64. It has
32-bit pointers and 64-bit math instructions, but it's not an actual processor
architecture: the speed depends on the execution environment, so would
'D_64bitRegister' be set in that case?

--


More information about the Digitalmars-d-bugs mailing list