Open Didas-git opened 9 months ago
c technically doesnt have a u128 type, but it technically does; i see __int128
within tinycc.
one note is it would have to almost always become a bigint cell, which is unfortunate for performance on large integers.
it shouldnt be that hard to implement this.
GCC also has __int128
and related types.
Regarding return type, could be nice to have an option to return int128 as a string (let the user choose) just for the speed bonus
i'm skeptical of string <-> int128 conversion being a speed bonus, but it may be an interesting option.
What is the problem this feature would solve?
Currently there is no good way to bind functions that return 128 bit integers, adding a way to do so would solve this.
What is the feature you are proposing to solve the problem?
Add
FFIType.i128
andFFIType.u128
What alternatives have you considered?
No response