I have a question about dynamic variable types. I know that this is possible when using generic programming, but since i am doing this in regular c under gcc i was wondering is there a simple trick or something to achieve this.
So the problem is that i have a function ,a rather large one, that works on a set of arrays that contain the integers of size 64bits. now i would like to use the same function on a integer array where each entry is encoded as 32bit integer. the way i am dealing with it right now, is by having two exact functions where one takes as an input 64bit ints and the other one 32bit integers.
Is there a way to have just one function that can handle both types? And yes converting 32bit integers into 64 and then feeding it to the 64 bit function is not an option.