The ideal way to optimize the constants would be to have a carefully-tuned
lookup-table instead of the
function, but 4 tuning variables is simpler,
enforces worst-case performance minimization rules, and such a lookup table
would be difficult to optimize for cross-platform performance.
could be used to generate a static lookup table. This hasn't been done
due to concerns about cross-platform compatibility and flexibility.