arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Support arbitrary sized integers and {u,i}128

Open Vexu opened this issue 3 years ago • 0 comments

_BitInt is coming in C2X and __i128 is already a widely supported extension so we should support them. The current constant expression evaluation system uses @opWithOverflow but it doesn't scale well for bit integers so we'll have to switch over to using wrapping arithmetic and checks for res > maxInt(T).

Vexu avatar Jan 18 '22 21:01 Vexu