Minimally hijacking this thread to just post an FYI which may be helpful in some
of your source-code optimizing work.
https://iquilezles.org/articles/noacos/
I haven't looked under the hood in a while to see how we're handling stuff like
this, but it seems like it could provide some performance increases, and for the
basis for some macros / include files.
- BW