> Now that it's all working (me now understanding what's going on) I looked > around for a nice way to enforce changes to all my literals and types, and > found an example here by
While Araqs example macro is very interesting, I strongly assume that performance impact of float literal types is only minimal in most cases. Because for CPU computations, what makes the performance difference is generally that for float32 number of values in caches is 2 time compared to float64. The math operations in FPU itself make no real difference (for x86 CPU), and I would even guess that C backend can optimize it when result is stored in a f32 var. For ARM CPU or GPU code literal types may make a difference indeed. Do you have an example for this case already?
