Spivoxity / obc-3

Oxford Oberon-2 compiler
38 stars 7 forks source link

Proposal: HUGEINT as extension #42

Open diegosardina opened 3 years ago

diegosardina commented 3 years ago

HUGEINT for 128 bit integers as Oberon-2 extension (at least for the 64bit version of obc).

I have hard times interfacing with some C libraries or porting some algorithms that use unsigned 64 bit integers

Spivoxity commented 3 years ago

Feel free to work on this. For portablility, it would be best if HUGEINT values were handled by out-of-line subroutines.

If all you want is the ability to handle the full range of unigned64, then a simpler plan would be to use LONGINT and add primitives for unsigned division and comparisons.