Closed karel-brinda closed 6 months ago
The way to achieve this with KHASH: macros. The program creates hash tables for individual data types, but uses only the one corresponding to the selected data type.
Might require having multiple instances of the same function pseudotemplates
The program should choose the corresponding datatype based on the params, it should be the same executable. In particular:
If I remember correctly,
__uint128_t
is a software emulation, see the following comparison: