How about maintaining four copies of each functions using Lua to generate some of the code? Isn't that possible?
OpenCL is probably not a good idea, I don't think it's supported on all the platforms where we can compile MCServer, yet.
OpenCL is probably not a good idea, I don't think it's supported on all the platforms where we can compile MCServer, yet.